Related articles when displaying an article.

Author Message

Pirabukannan Muthalagan

Tuesday 22 June 2004 11:59:16 am

Hi ,

I want to display related articles when displaying an article on the right menu.
Can i use the following fetch

{ let node_list = fetch(content,search,hash(text,"eZ")) }

to retreive all the objects having a key word "EZ"?.

If yes can i use the result as a parements to node_view_gui function?.
Or if you have any alternate method please let me know.

Balazs Halasy

Wednesday 23 June 2004 3:00:06 am

I'm sorry but this is not possible to do. To see which modules you can fetch from (and the according fetch parameters), look at the following documentation page:

http://ez.no/ez_publish/documentation/reference/data_fetching

Balazs

Pirabukannan Muthalagan

Wednesday 23 June 2004 6:33:26 am

Hi ,

But it seems to be working. :-) It seems i have made some syntax mistakes and it is working now. I have to make some further tests. But the initial results are really positive.

I used the same query to get the objects and passed them to node_view_gui. May be this is an hidden functionality :-)

shajeer K P

Friday 25 June 2004 1:58:32 am

Can you please show the code you used, because i also have the same problem.

Pirabukannan Muthalagan

Friday 25 June 2004 2:05:02 am

HI ,

I will post the code soon. But before that i am facing some other problems. Once i sort it out i will post the code. Keep watching this thread.

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 31 2025 06:11:56
Script start
Timing: Jan 31 2025 06:11:56
Module start 'layout'
Timing: Jan 31 2025 06:11:56
Module start 'content'
Timing: Jan 31 2025 06:11:56
Module end 'content'
Timing: Jan 31 2025 06:11:56
Script end

Main resources:

Total runtime0.0151 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.2656151.2266
Module start 'layout' 0.00470.0024 739.492236.6797
Module start 'content' 0.00720.0064 776.171990.1875
Module end 'content' 0.01360.0015 866.359433.9922
Script end 0.0151  900.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002516.5998140.0002
Check MTime0.00117.4938140.0001
Mysql Total
Database connection0.00064.173610.0006
Mysqli_queries0.002113.972230.0007
Looping result0.00000.066110.0000
Template Total0.00128.110.0012
Template load0.00106.280010.0010
Template processing0.00031.827810.0003
Override
Cache load0.00074.549810.0007
General
dbfile0.001811.768180.0002
String conversion0.00000.052040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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