Link to content for an specific content type

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Link to content for an specific content type

mvelasco
Hi everyone, I added an internal menu (intranet side) using angular but for somedays I was trying to figure out how to add links to specific content type search. For example, I want to add a link to Banner content type, once the link is clicked redirect to /#/content, how can I do to redirect in order to see all banner contentlets?
I tried added ?structure_id=<banner_inode> but redirect to workflow.

Any idea?
Best

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/2f9cba2c-b83c-4c27-a4ff-8ec5e74e7fed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Link to content for an specific content type

Mark Pitely
You could either build a page that took the structureName as a variable and then built a query of the content to show, or do the something similar with the API.
I think all content has a 'title' field. That is, if nothing is set title it takes the first text field and marks it content. Otherwise you might need to do a little #if($UtilMethods.isSet()) around some normal field names. All the field name data is in the content pull, but it would not be trivial to extract the fields from a generic piece of content. The API return in JSON would probably be easier to extract the fields from with a 'proper' programming language.

Alternatively, you could probably reverse engineer whatever the backend dojo javascript does when you switch type in the content tab.

Mark Pitely
Marywood University

On Sun, Oct 22, 2017 at 11:01 AM, mvelasco <[hidden email]> wrote:
Hi everyone, I added an internal menu (intranet side) using angular but for somedays I was trying to figure out how to add links to specific content type search. For example, I want to add a link to Banner content type, once the link is clicked redirect to /#/content, how can I do to redirect in order to see all banner contentlets?
I tried added ?structure_id=<banner_inode> but redirect to workflow.

Any idea?
Best

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/2f9cba2c-b83c-4c27-a4ff-8ec5e74e7fed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAFeiKqNxJRXrzXisjn2eCbwsVPZLtEHGOJ4SwTL4jLKHuLG9tQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.