Forums / Developer / A couple of "stupid" questions

A couple of "stupid" questions

Author Message

Eugene Popovsky

Saturday 07 February 2004 1:27:06 pm

Hello all,

I am trying to design site using EZPublish 3.3 and have the following questions:
1. I am noticed that into and body attributes of the article class have "XML Text field" type. Can I change this to simple text field?
2. I use the following in order to display content of the intro attribute:
{attribute_view_gui attribute=$about.data_map.intro}
It is Ok, but it returns the content in <p> tags.
I don't want to override <p> tags in order to add my own CSS classes. I want to get clear content in order to operate with it in the way:
<p class="my_cutom_class">{$about.data_map.intro.data_text}<p>
Please help me with this, or explain the advantages and techniques of overriding default teplates.

Thanks in advance!!!

P.S. Also, may be there ther is a GURU who can provide me with his ICQ/MSN/Yahoo ID in order I will be able to ask some "stupid" questions from time to time?

Eugene

Balazs Halasy

Saturday 07 February 2004 3:36:34 pm

1)
Can't just change it. If you do, all your current content (which uses that class) will disappear. Do this: create a new class which you call "My Article" or something. Make sure it consists of a text line (title) and two text fields (intro and body).

2)
The attribute_view_gui function includes the view template for the datatype that was used for that attribute. You could simply change/override this template if you want it to render differently. Even if you extract the XML text directly (not using the view_gui function) eZ publish will probably still insert the p tag (this is a design issue that has been discussed back-and-forth for some time now). The only way to get around it is to pump in some magic CSS.

Balazs

Eugene Popovsky

Sunday 08 February 2004 2:29:40 am

Thank you, Balazs!

Two more question:
1. Now the url to my site on local Linux server looks like:
http://ezpublish/index.php/mysite/
When I will finish the development, and will transfer all files and databases to remote server how should I setup the system in order to have http://www.mydomain.com/ url?

2. Also, are there any possible troubles with transfering developed solution from local server to remote?

3. You have developed a GREAT solution, I havecheked about 20 OpneSource CMS, but your is the best one. (I hate *Nuke CMS :).
Do you plan to create light version of EZPublish? As it is too big and complex, requires a lot of mem and CPU resources.

Thanks.
Eugene

Eirik Alfstad Johansen

Monday 09 February 2004 12:37:02 am

Hi Eugene,

1. Put the following in your httpd.conf file

RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|jar|js)$ /index.php

This will redirect all requests to index.php.

2. None of the ezp kind that I can think of, but be aware of different configurations on the two servers.

3. I'll leave this up to ez.

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

eZ debug

Timing: Jan 31 2025 08:04:13
Script start
Timing: Jan 31 2025 08:04:13
Module start 'content'
Timing: Jan 31 2025 08:04:13
Module end 'content'
Timing: Jan 31 2025 08:04:13
Script end

Main resources:

Total runtime0.2519 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.9297180.8359
Module start 'content' 0.00700.0069 768.765697.8672
Module end 'content' 0.01390.2379 866.6328527.3047
Script end 0.2517  1,393.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.4005200.0002
Check MTime0.00140.5420200.0001
Mysql Total
Database connection0.00080.305710.0008
Mysqli_queries0.194077.02931410.0014
Looping result0.00160.64611390.0000
Template Total0.237594.310.2375
Template load0.00090.366810.0009
Template processing0.236693.921710.2366
Override
Cache load0.00070.267110.0007
Sytem overhead
Fetch class attribute can translate value0.00100.389010.0010
XML
Image XML parsing0.00040.171110.0004
General
dbfile0.01355.3609200.0007
String conversion0.00000.003130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs