Forums / General / Content not showing up in all Locations

Content not showing up in all Locations

Author Message

Sebastian Mantilla Beniers

Thursday 27 August 2009 9:01:43 am

We have a site, based on eZ Publish 4.0.3.

It is a medical equipment distributor site. http://www.interferenciales.com.mx/

The content is divided in two big categories, brands and functions.

http://www.interferenciales.com.mx/index.php/esl/Productos (functions)
http://www.interferenciales.com.mx/index.php/esl/Marcas (brands)

The products are for a specific function and belong to a brand.

That way one could go look for an equipment for an specific function and found all the products that are related.

Or one could go and look for the products we carry for a brand and have all of them.

For the most part of it that works great, but we are having a problem with some brands.

For example this:
http://www.interferenciales.com.mx/index.php/esl/Marcas/Innovision-Systems

We know there are 4 products of this brand under the corresponding function division. But they are not showing up in here, the do show up in the function.

We are able to see them in the admin interface, they are marked to appear in both locations, but the only show up in one.

Your help and recommendations would be more than welcome.

Sebas

André R.

Thursday 27 August 2009 10:01:33 am

I could not find Innovision-Systems under Productos, so I guess the products are under another folder there.

Could it be that someone forgot to tick of 'Show Children' on Innovision-Systems folder?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Sebastian Mantilla Beniers

Friday 28 August 2009 12:02:03 pm

Hi Andre,

Thanks for your help.

Yes, the option Show Children is ticked.

Innovision Systems is a brand, you could see the empty page here:
http://www.interferenciales.com.mx/index.php/esl/Marcas/Innovision-Systems

You can see how it looks in the admin here:
http://www.iac.com.mx/interferenciales/ez28-08-2009-11.38.29 AM.jpg

Here is how it looks one that do works:
http://www.iac.com.mx/interferenciales/ez28-08-2009-11.58.49 AM.jpg

The products for that brand could be seen under
http://www.interferenciales.com.mx/index.php/esl/Productos/Marcha-y-Balance

And the products them self are:
http://www.interferenciales.com.mx/index.php/esl/Productos/Marcha-y-Balance/MaxMATE
http://www.interferenciales.com.mx/index.php/esl/Productos/Marcha-y-Balance/MaxTRAQ
http://www.interferenciales.com.mx/index.php/esl/Productos/Marcha-y-Balance/MaxTRAQ-S3D
http://www.interferenciales.com.mx/index.php/esl/Productos/Marcha-y-Balance/MaxTRAQ-VJR

Could I check something else? Do something more?

Sebas

André R.

Saturday 29 August 2009 5:10:56 am

Yes there are lot of things you can do, but it requires that you know a bit programming or at least can understand some template code. I don't know your skill level, but lets try to dive into it:

To make it simple I assume the this is standard ezwebin templates.
If it is NOT (remember, stylesheets are not templates, so I only talk about template aka *.tpl files here), then you'll need to enable* site.ini [DebugSettings]debugOutput and [TemplateSettings]ShowUsedTemplates, refresh the page and check the first line under "Templates used to render the page" which should look like:

1	node/view/full.tpl	full/folder.tpl	extension/ezwebin/design/ezwebin/override/templates/full/folder.tpl

The line above is from standard ezwebin install, so as you see from the forth (and last) column, we have the path to the file we want to debug / investigate (this is the same on your install).
So using your editor and ftp/ssh/scp tool of choice, navigate to the root to ezpublish and further navigate to the file mention above (extension/ezwebin/design/ezwebin/override/templates/full/folder.tpl)
Now lets try to debug a couple of things, on line 28 (+/- 3 lines dependign on version), you'll find:

        {if $node.object.data_map.show_children.data_int}

Now try to debug a couple of things by adding the following lines BEFORE that line
(make a copy of the file before you start, so you can try out stuff your self and be able to go back)

{$node.object.data_map.show_children.data_int|attribute('show', 2)}
{$node|attribute('show', 1)}

You might need to clear some cache to get this to show up, go to 'Setup' in admin interface and clear viewcache, and maybe also template cache if that's not enough. (If that doesn't help, just "clear all")

Then, if you cant make anything of it on your own, post the result you get back here (see on the right side when posting forum replies for how to use [code] blocks around the text to keep formating ).

Good luck ;)

* Go to Setup -> Ini-Settings (/settings/view) and select site.ini and your front site siteaccess, then scroll down or use ctrl+f to search for them and click the edit icon.

Some related doc pages:
$node http://ez.no/doc/ez_publish/technical_manual/4_x/reference/objects/ezcontentobjecttreenode
|attribute http://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/miscellaneous/attribute
site.ini http://ez.no/doc/ez_publish/technical_manual/4_x/reference/configuration_files/site_ini

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Sebastian Mantilla Beniers

Monday 31 August 2009 3:25:36 pm

Hi Andre,

Again thanks for all your help.

I read the links that you sent in the previous post and I also did what you said.

I got the out put of it.

Attribute 	Type 	Value
node_id 	string 	1248
parent_node_id 	string 	353
main_node_id 	string 	1248
contentobject_id 	string 	2580
contentobject_version 	string 	3
contentobject_is_published 	string 	1
depth 	string 	3
sort_field 	string 	7
sort_order 	string 	1
priority 	string 	0
modified_subnode 	string 	1251428632
path_string 	string 	'/1/2/353/1248/'
path_identification_string 	string 	'marcas/innovision_systems'
remote_id 	string 	'e15241c8d9556ea0edebcd4f98c71c89'
is_hidden 	string 	0
is_invisible 	string 	0
name 	string 	'Innovision Systems'
data_map 	array 	Array(7)
object 	object[eZContentObject] 	Object
subtree 	array 	Array(5)
children 	array 	Array(0)
children_count 	string 	5
view_count 	integer 	0
contentobject_version_object 	object[eZContentObjectVersion] 	Object
sort_array 	array 	Array(1)
can_read 	boolean 	true
can_pdf 	boolean 	true
can_create 	boolean 	false
can_edit 	boolean 	false
can_hide 	boolean 	false
can_remove 	boolean 	false
can_move 	boolean 	false
can_move_from 	boolean 	false
can_add_location 	boolean 	false
can_remove_location 	boolean 	false
can_view_embed 	boolean 	false
is_main 	boolean 	true
creator 	object[eZContentObject] 	Object
path_with_names 	string 	'Marcas/Innovision-Systems'
path 	array 	Array(2)
path_array 	array 	Array(4)
parent 	object[eZContentObjectTreeNode] 	Object
url 	string 	'Marcas/Innovision-Systems'
url_alias 	string 	'Marcas/Innovision-Systems'
class_identifier 	string 	'folder'
class_name 	string 	'Folder'
hidden_invisible_string 	string 	'-/-'
hidden_status_string 	string 	'Visible'
classes_js_array 	string 	''''

But I can not find anything wrong there.

As you can see it says:
children_count string 5

And since they show up under brands I guess they could be seen.

Is there something that gives you a clue?

Thank you very much.

Sebas

Steve Satchit

Wednesday 23 September 2009 11:42:37 am

I cannot get the welcome page (index page) to reflect the index of all the contents posted on other pages or other sections. Can someone help me please.

Shiv Satchit