Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2005-05-25 21:59:44

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: mem_glinklist: Grouped Link List

I would like to use this plugin with the “rss_link_date” but it needs the $thislink variable

As of Textpattern Rev 366 a global variable $thislink has been added. This variable is available for use during the processing and listing of links when using the <txp:linklist /> tag and allows for the display of any and all information related to links.

Would it be too difficult to add this functionality to your plugin?

Offline

#122 2005-05-26 03:10:58

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: mem_glinklist: Grouped Link List

Also, can you enable it so it outputs the category titles instead of the category names.

Like Etz did in comment #67 of this post

Last edited by tinyfly (2005-05-26 03:29:20)

Offline

#123 2005-05-27 20:30:27

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: mem_glinklist: Grouped Link List

supa,

I would like to see your code. I really need the mem_if_links_exist() and mem_if_subcategories_exist(). This works in the page template right?

Last edited by tinyfly (2005-05-27 20:31:32)

Offline

#124 2005-05-28 06:25:17

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: mem_glinklist: Grouped Link List

Offline

#125 2005-05-28 12:32:01

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: mem_glinklist: Grouped Link List

Excellent Manfre, thanks!

Last edited by tinyfly (2005-05-28 12:34:39)

Offline

#126 2005-05-29 01:44:03

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: mem_glinklist: Grouped Link List

I have updated the plugin to the latest version 0.8. Until today, I was using one of the first versions of this plugins, so, i need to re-learn the use of this plugin and all the new attributes. I’m still learning… but…

I think something is going wrong with the “headwraptag” attribute.
If I set it to “div” or “h2”, it outputs a closed tag (similar tu “br” or “hr”)
It is outputting something like this:

&#60;div class=“caja”&#62;<b>&#60;div /&#62;</b>
&#60;ul&#62;&#60;li&#62;

I dont know if I’m setting anything wrong…

BTW, if I set “headwraptag” to something like “div” or “h2”… what will this plugin output between the tag? the category name?
I can figure it out yet.
Thanks!

PD: is possible to use BBCode in this forum?! I didnt be able to use [code][/code], so, need to write HTML entities to display the chunk of HTML code.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#127 2005-05-29 04:57:43

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: mem_glinklist: Grouped Link List

maniqui, What is the mem_glinklist tag that you are using? Also, what version of Textpattern are you using?

Offline

#128 2005-05-29 05:54:44

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: mem_glinklist: Grouped Link List

Hi Manfre,

this is my mem_glinklist tag:

&#60;txp:mem_glinklist category=“fabricantes” form=“plainlinks” columnwraptag=“ul” columnclass=”“ headwraptag=“h2” headclass=”“ listwraptag=“div” listclass=“caja” /&#62;

My TXP version is RC3 (stable version, downloaded from textpattern.com, not from SVN).


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#129 2005-05-29 06:30:55

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: mem_glinklist: Grouped Link List

Mmmmmmmmm.

How is the correct way to use of “catform” attribute?
and wich is the difference with “headwraptag”?

I’m trying to use both… and now the plugin is outputting two heading tags…


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#130 2005-05-29 06:43:10

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: mem_glinklist: Grouped Link List

Cannot edit posts… (whats going on?!)
So, I need to post again (excuse me)

I’m trying to use both… and now the plugin is outputting this:

…&#60;div class=“caja”&#62;<b>&#60;div&#62;&#60;h2&#62;&#60;/h2&#62;&#60;/div&#62;</b>
&#60;ul&#62;&#60;li&#62;….

My catform form is this:

…&#60;h2&#62;&#60;txp:mem_cat_title /&#62;&#60;/h2&#62;

So, the only thing left is to output the value for &#60;txp:mem_cat_title /&#62;

The value that will be outputted… is the name corresponding to the category given in the mem_glinklist tag?

PS: excuse my english


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#131 2005-05-29 06:52:15

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: mem_glinklist: Grouped Link List

Finally, I get it

&#60;txp:mem_cat_title /&#62; and &#62;txp:mem_cat_name /&#62; arent the same thing.

It workis with name (the category name is outputted) but… what is category title?!

BTW, TXP should have the option to give a category two values:
- a category name (to be used as a variable) and a category title (to be used for more human readable purposes, as long titles…)
- the same applies to sections (i know there is a plugin spc_section_alias for these, but I think this should be part of the TXP ouf-of-the-box)

PS: again, excuse my english


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#132 2005-05-29 14:22:05

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: mem_glinklist: Grouped Link List

The category title is the human readable field “title” from the database. This has been added to svn not too long ago. My guess is that you are using a version before they added this functionality.

FYI, the mem_cat_crumbtrail tag uses the “name” field and not the title field. This will be corrected in the near future.

Offline

Board footer

Powered by FluxBB