Is there a way to include a specific section of a live templated page (or form) like the ListPages module does for multiple pages using content{n}? I saw a post about including only specific parts of a page but it used some comment syntax trickery and variables to accomplish this. If pages are already set up using content sections it seems like doing this for one page should be very simple. Am I missing something? For example if content{1} was some source code in a templated page and I wanted to reuse that listing I want to just be able to reference (include) that directly.
I'm not sure I understand you completely. I would use the listpages module because up till now it is impossible to do this. However if you tag your page with the it's pagename… you can select that page using tags="pagename"… it should be unique and then you can use the listpages module to only retrieve content{1} for example.
Thanks for the reply.
Basically I want to be able to extract numbered content sections (the way ListPages does with %%content{n}%% ) on one page only. Not a range of pages selected by ListPages, the tag thing would definitely work to narrow the ListPages result set down to one page but would explode my tag set.
It looks like I might have to currently work around this as it's not supported. I have a category for code snippets that I want to reuse the source list in various places. There will be times when I want to just get the code (from content{1}) from a specific snippet and inline it into a page without the other content that I have put on that snippet's page.
I saw your website. There is no need for your tags to explode. if you give the pages in your snippets-category ONE tag extra which is the name of that snippet (starting with an underscore so it will become invisible to the tagcloud) that should do the trick.
example:
snippet:open-database (this is a page)
now give that page the tag "_open-database"
now create a separate pagename "get-snippet"
this is the code for that page
[[module listpages tags="{$snippet}" separate="no"]]
content{x}
[[/module]]
now in the page where you want to include (reuse) your snippet put
[[include get-snippet snippet=_open-database]]
this include will be included as a block-item so you need to do some CSS-ing to change that.
Awesome, thanks for your time!
You think this will work?
Hello, I want to make something similar - An include to some page with specific {n} content from template/category.
I tried include and listpage modules but they always shows more than I want, and I can't use a tags for a long run solution.
Is there already a simple way to do that?
Thanks in advance for help.
Not sure what you mean with " …but they always shows more than I want" … what is the "more" ?
if you cannot use the tagging system to select oinly ONE page ( why not ?) and to use a part of this page only than you need a better selection on the ListPages module.
I assumne you do not use "data form" ? this is bad in some issue - you cannot use the new selection by "_data field"
And: your site looks good!
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
Thank you.
Unfortunately I need it for my private site.
With "more" I was thinking about contents of more than one page (with listpages) and more than one content (with include).
I don't want to use tags because I would need a really lot's of them and it will complicate a yet very complicated system of page relations I am planning to implement.
I don't use data form, only divided content like in categories.
Basically I need it for some prototype of RPG site in which I often make text instancing to particular block of text from page from some category.
There will be many informations, some of them should be more or less hidden.





