Share » Forums » Setup & design » How to disable preview, remove, add...

How to disable preview, remove, add to bookmarks....on user site

How to disable preview, remove, add to bookmarks....on user site

Friday 27 June 2003 1:13:53 am - 12 replies

Modified on Friday 27 June 2003 1:14:41 am by Tonny Laursen

Author Message

Thomas Schamm

Saturday 28 June 2003 12:07:47 pm

This is because eZp uses the template file design/standard/templates/node/view/full.tpl to view the objects. You have to create an override file for each class you use on your custom page.
See http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/terminology_basics/the_new_template_override_system_from_31_onwards for creating override tpl.

I hope this solves your problem.

Tonny Laursen

Thursday 10 July 2003 5:50:30 am

I have tried to do what it says in the doc. but no result. The classes are the same as in the EZ Demo.

in /var/www/html/'mydesign'/settings/siteaccess/'mydesign'/override.ini.append I have the following:

[full_class_2]
Source=node/view/full.tpl
MatchFile=full_class_2.tpl
Subdir=templates
Match[class]=2

[line_class_2]
Source=node/view/line.tpl
MatchFile=line_class_2.tpl
Subdir=templates
Match[class]=2

[menu_class_2]
Source=node/view/full.tpl
MatchFile=menu_class_2.tpl
Subdir=templates
Match[class]=2

In /var/www/html/mydesign/design/mydesign/override/templates I have the 3 files 'full_class_2.tpl', 'line_class_2.tpl' and 'menu_class_2.tpl'.

I have turned debug on and can see which template are being used and it is 'design/standard/templates/node/view/full.tpl'

What is it I am doing wrong?

Tonny

Karsten Jennissen

Thursday 10 July 2003 6:18:27 am

One problem (not the main one) is that you have two conflicting overrides (first/last). Are your override templates really in yourdesign/override/templates or in a subdirectory?

Karsten

Tonny Laursen

Friday 11 July 2003 12:35:38 am

My override templates are in 'design/mydesign/override/templates'

I have also tried to put them in 'design/mydesign/templates'
If I place a file called 'full.tpl' in 'design/mydesign/override/templates/node/view' EZ shows this file.

When I turn debug on, the first debugline shows 'design/mydesign/override/templates/pagelayout.tpl'

and then the rest of the debuglines shows the files in 'design/standard/templates'

and I clear the cache everytime I try something.

Karsten Jennissen

Friday 11 July 2003 12:53:27 am

Could you try changing the conflicting overrides? (#1 and #3)? Maybe the system gets confused or something. ;-)

Tonny Laursen

Friday 11 July 2003 1:27:51 am

The only thing I have in override.ini.append is now the following:

[full_class_2]
Source=node/view/full.tpl
MatchFile=full_class_2.tpl
Subdir=templates
Match[class]=2

And EZ use 'design/standard/templates/node/view/full.tpl'

Karsten Jennissen

Friday 11 July 2003 1:44:04 am

This is very weird. Anyway, you said you clear the cache. Did you do this via clearcache.sh or the admin? If you did one of these, try one last step and delete the stuff that is in /var/cache, reload. Let's see if that helps. :-)

Tonny Laursen

Friday 11 July 2003 4:10:35 am

I have tried all three things with the cache (admin, shell script and manual delete /var/cache). Still dosent help.

Could it be something in my site.ini (.append) or in the template?

Paul Forsyth

Friday 11 July 2003 4:36:07 am

Could you look at your template from within the admin?

If you goto 'setup:templates' you should be able to navigate to the classes you are overriding. Viewing these links will show whether your overrides are in place or not.

paul

Tonny Laursen

Friday 11 July 2003 5:06:53 am

Im not sure I understand this, but I have copied a part of what it shows where 'rubintra' is mydesign.

Template Design Resource
/shop/basket.tpl design/rubintra/templates
/node/view/full.tpl design/standard/templates
/node/view/line.tpl design/standard/templates
/node/view/sitemap.tpl design/standard/templates
/node/view/text_linked.tpl design/standard/templates
/node/view/text.tpl design/standard/templates
/content/view/embed.tpl design/standard/templates
/content/advancedsearch.tpl design/standard/templates
/content/search.tpl design/standard/templates
/fullscreen_pagelayout.tpl design/standard/templates
/loginpagelayout.tpl design/rubintra/templates
/pagelayout.tpl design/rubintra/override/templates
/popup_pagelayout.tpl design/standard/templates
/print_pagelayout.tpl design/rubintra/templates
/setup_pagelayout.tpl design/standard/templates
/node/view/full_class_1.tpl design/rubintra/override/templates
/node/view/full_class_2.tpl design/rubintra/override/templates
/node/view/line_class_29.tpl design/rubintra/override/templates
/node/view/full_class_24.tpl design/rubintra/override/templates
/node/view/full_class_26.tpl design/rubintra/override/templates
/node/view/full_class_29.tpl design/rubintra/override/templates
/node/view/full_class_5.tpl design/rubintra/override/templates
/node/view/full_class_6.tpl design/rubintra/override/templates
/node/view/full_class_8.tpl design/rubintra/override/templates
/node/view/full_node_31.tpl design/rubintra/override/templates

Karsten Jennissen

Friday 11 July 2003 5:14:44 am

You go to Setup -> Templates and at the top you find "Most common templates". There you click "/node/view/full.tpl" because that's the template you are overriding in your design.

Then you have a drop down list that shows you the available designs. Select your design and click "Set". You should get the list of overrides to the above template for your design. If the condition you set in the override.ini is shown, then you at least know that the system recognises your directive and it may be a bug. If not, than you have some misconfiguration in your siteaccess.

Karsten

Tonny Laursen

Friday 11 July 2003 5:28:14 am

In the drop down menu i can see my designs but all of them are twice.

When I click 'mydesign' and 'set' it shows:

Override File Match conditions
full_class_2 design/rubintra/templates/full_class_2.tpl class : 2

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu