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/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 03:29:12
Script start
Timing: Jan 19 2025 03:29:12
Module start 'layout'
Timing: Jan 19 2025 03:29:12
Module start 'content'
Timing: Jan 19 2025 03:29:13
Module end 'content'
Timing: Jan 19 2025 03:29:13
Script end

Main resources:

Total runtime0.6950 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.1563152.6250
Module start 'layout' 0.00560.0024 741.781339.4453
Module start 'content' 0.00790.6856 781.2266596.3359
Module end 'content' 0.69350.0014 1,377.562512.1641
Script end 0.6949  1,389.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4408160.0002
Check MTime0.00130.1862160.0001
Mysql Total
Database connection0.00080.113810.0008
Mysqli_queries0.629090.5126620.0101
Looping result0.00060.0805600.0000
Template Total0.659294.920.3296
Template load0.00180.256720.0009
Template processing0.657494.602020.3287
Template load and register function0.00020.023210.0002
states
state_id_array0.00130.183610.0013
state_identifier_array0.00110.154120.0005
Override
Cache load0.00160.2243440.0000
Sytem overhead
Fetch class attribute can translate value0.00070.106630.0002
Fetch class attribute name0.00120.166860.0002
XML
Image XML parsing0.00931.341030.0031
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00881.2680220.0004
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs