Forums / Developer / Show a link to information collected

Show a link to information collected

Author Message

David Santiso

Tuesday 22 February 2011 1:37:31 am

Hi,

I've asked about this subject before, but nobody answered me. Try to be a bit more concrete.

I've created a form for collecting user information. Then, I show some of this information collected in another section.

I want to put a link that shows the full information on each collection.

How I can do?

Thank you very much in advance,

David

Karol Radziuk

Tuesday 22 February 2011 4:15:23 am

Hi

You follow links in admin interface, and use for your siteaccess:

/admin/infocollector/overview - for all collections
/admin/infocollector/collectionlist/[object_id] - collections for single object
/admin/infocollector/view/[collection_id] - single collection

But i think, limitation for infocollector is not sophisticated

{$me|attribute(show,1)}

David Santiso

Tuesday 22 February 2011 6:15:21 am

Thanks, but I don't know if this will work, because users hasn't access to admin interface. Even if this were ... is not it "good" to do so.

I was thinking of something similar to create a link to some object or template which shows the collection with the id give it.

Without using eZ Publish I would create a HTREF would pass it the ID using GET. Then I would create a template that would display the information with that identifier.

Any ideas?

Thanks,

David

Marko Žmak

Tuesday 22 February 2011 6:55:07 am

David, the links that Karol mentioned can also be used in your public site, just replace the "admin" with your site access name, like this:

  • /<your_site_access>/infocollector/overview
  • /<your_site_access>/infocollector/collectionlist/[object_id]
  • /<your_site_access>/infocollector/view/[collection_id]

In order for this pages to be displayed correctly, you should also give anonymous users permissions to view collected info, and probably create your own templates for the collected info preview so that it looks nice.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

eZ debug

Timing: Jan 18 2025 01:57:21
Script start
Timing: Jan 18 2025 01:57:21
Module start 'content'
Timing: Jan 18 2025 01:57:22
Module end 'content'
Timing: Jan 18 2025 01:57:22
Script end

Main resources:

Total runtime0.8205 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0095 588.8672180.8359
Module start 'content' 0.00950.8044 769.7031598.2031
Module end 'content' 0.81390.0065 1,367.906346.4141
Script end 0.8204  1,414.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3933140.0002
Check MTime0.00130.1629140.0001
Mysql Total
Database connection0.00150.181710.0015
Mysqli_queries0.758592.4532630.0120
Looping result0.00100.1186610.0000
Template Total0.787596.020.3938
Template load0.00220.262720.0011
Template processing0.785495.722620.3927
Template load and register function0.00020.026410.0002
states
state_id_array0.00100.126610.0010
state_identifier_array0.00070.081420.0003
Override
Cache load0.00180.2224330.0001
Sytem overhead
Fetch class attribute can translate value0.00100.120630.0003
Fetch class attribute name0.00160.190260.0003
XML
Image XML parsing0.00200.245030.0007
class_abstraction
Instantiating content class attribute0.00000.002260.0000
General
dbfile0.00510.6193260.0002
String conversion0.00000.000830.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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs