Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#61 2004-10-17 16:41:11
- chrisfnet
- New Member
- Registered: 2004-10-17
- Posts: 2
Re: mem_glinklist: Grouped Link List
Very nice. This works exactly as it should, and was exactly what I was looking for!
Offline
Re: mem_glinklist: Grouped Link List
Version 0.5 is posted. I altered the output to be more xhtml friendly as requested. There is a new behavior change. The wraptag attribute is used to wrap the output of each list and the list_wraptag attribute wraps only the list of links.
Offline
Re: mem_glinklist: Grouped Link List
Can’t wait to test it!
In few minutes, I will edit this post with the final veredict ;)
Edit:
As I read in other plugin threads:
It works like a charm!
Thank you very much, Manfre.
This is an xhtml 1.0 strict compliant plugin (of course, if you use that doctype)!
Approbed!
Last edited by maniqui (2004-10-18 06:17:35)
Offline
Re: mem_glinklist: Grouped Link List
Just one comment:
I keep thinking that “myclass_head, and “myclass_list” are not necesary, ‘cause you can define a few CSS rules like:
div.linklist /* the wraptag and the class you have choosen */
{
}
div.linklist ul /*or the listwraptag you have choosen */
{
}
div.linklist h2 /*or the headwraptag you have choosen */
{
}
This will output a little bit cleanest code.
Anyway, this is an excelent plug-in by Manfre.
Offline
#65 2004-10-18 06:56:02
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: mem_glinklist: Grouped Link List
sure is… hey Manfre, don’t forget about the user-specified column split : )
Offline
Re: mem_glinklist: Grouped Link List
hi…
i’m having trouble figuring out how to turn the category header into a link.. am i grossly overlooking something, or is it not possible to do with this plugin? what i have so far is:
<code><txp:mem_glinklist category=“sleep” headwraptag=“h4” listwraptag=“div” class=“list” /></code>
and the output is perfect except that i would like to make the header “Sleep” linkable to a particular page. what am i missing?
this is a beautiful plugin besides..thank you Manfre :)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: mem_glinklist: Grouped Link List
alicson,
This plugin doesn’t support category headings as arbitrary links. There is a tag included with the plugin that can generate a separate list of categories that can be used to generate links to a page and will either pass along c=“category_name” or lc=“category_name”, depending on the “type” attribute. It will generate the lc link if type=“link”, otherwise it does the other method. That basically signifies whether it wants to pass the category as an article category or a link category (it works with both as of g1.19).
==
You would use the plugin tag below:
<pre>
<code>
<mem_categories form=“cat_link_form” wraptag=“div” class=“my_css_class” />
</code>
</pre>
And put the following in “cat_link_form”:
<pre>
<code>
<txp:mem_cat_link />
</code>
</pre>
==
- <txp:mem_cat_id /> – The category id
- <txp:mem_cat_name /> – The category name
- <txp:mem_cat_type /> – The type of category it is (link or article)
- <txp:mem_cat_parent_id /> – The id of the parent category
- <txp:mem_cat_link /> – Generates a link that posts back to the current page with the category passed as a parameter.
Last edited by Manfre (2004-10-26 19:26:43)
Offline
Re: mem_glinklist: Grouped Link List
Manfre,
thank you. that was a very clear explanation of how to list categories (which was going to be my next project).
i wonder then, is it possible to have <code><txp:mem_glinklist /> output only the specific list and not the category heading? it seems that by specifiying the catgory, it automatically stamps the list with that header as well—which is convenient, but doesn’t seem to allow for a tailored heading. are the list and the heading separable?
i do appreciate your assistance with this, and again for building the plugin in the firstplace!
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: mem_glinklist: Grouped Link List
You are correct in your assumption that the heading is bound to a list, but there are ways around it. You can use CSS to hide the heading and then place your own above it the <txp:mem_glinklist /> tag in the page.
Offline
Re: mem_glinklist: Grouped Link List
i will try that. thank you :)
and have a beautiful day.
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#71 2004-11-06 23:05:23
- danielk
- Member
- Registered: 2004-03-04
- Posts: 24
Re: mem_glinklist: Grouped Link List
If I could impose for some link navigation assistance?
What I’m trying to do is output a a nested list of link category names, and only link categories, which are links to the appropriate section output. I have many, many links, which are organized within categories and sub-cat’s in TXP, and I’d like to use glinklist as navigation to feed the correct ‘lc=
Last edited by danielk (2004-11-07 04:25:09)
Offline
Re: mem_glinklist: Grouped Link List
Are you saying that you want a category output like below:
- MainCat1
- SubCatA
- SubCatB
- MainCat2
- SubCatC
- SubCatD
…and when you click on the category link from above, it would then load a list of links?
Offline