Forums / Developer / A couple of "stupid" questions
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
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 OnRewriteRule !\.(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/