Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: How can i add a class to list break tag?
Thank you for your rely!
@Els : i follow plugin help document that you suggest. I see:
linkwraptag
The HTML tag that wraps the permlink to the full article.
Default: “p”
Example: linkwraptag=“span”
linkclass
The class attribute on the linkwraptag.
Default: “”
Example: linkclass=“morelink”
But i don’t mention wraptag attribute. I mention to perm link “<a>” tag attribute ( class=”…”). Because i am using rss_auto_exerpt so i have to fix my mind with rss_auto_excerpt tag structure…
This is rss_auto_excerpt tag code:
<txp:rss_auto_excerpt words=“60” linkclass=“more float_r” linkwraptag=“” ending=” …” />
i think linkclass=“more float_r” only applies for linkwraptag.
So, i want to know the way to fix permlink of rss_auto_excerpt. Your example with default TXP permlink not rss_auto_excerpt readmore link.
@thebombsite: ok, i see, i can remove “<p>” tag before …
like below:
<txp:rss_auto_excerpt words=“60” linkclass=“more float_r” linkwraptag=“” ending=” …” />
the output is:
<a href=“http://link/~hoangnm/textpattern/index.php?id=1” rel=“bookmark”>Read More…</a>
no linkwraptag and linkclass applies nothing … I want the output may be :
<a href=“http://link/~hoangnm/textpattern/index.php?id=1” class=“more_float_r” rel=“bookmark”>Read More…</a>
it means [class=“more_float_r”] applies for pemlink (“<a>” tag), not permlink wraptag…
Last edited by tydaikho (2010-10-10 21:20:14)
http://vnsx.net | http://tydaikho.tk | http://txpblog.tk
Offline
Re: How can i add a class to list break tag?
Remove rss_auto_excerpt permlink and replace with default TXP permlink (<txp:permlink class=“more float_r”>Read more</txp:permlink>), i have fixed my problem… Thank you for your supporting. However, i still want to know how to assign “class” attribute to rss_auto_excerpt permlink. Because it is one of more situations i will see in future.
http://vnsx.net | http://tydaikho.tk | http://txpblog.tk
Offline
#15 2010-10-10 21:44:39
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How can i add a class to list break tag?
tydaikho wrote:
However, i still want to know how to assign “class” attribute to rss_auto_excerpt permlink. Because it is one of more situations i will see in future.
I don’t think that is possible, other than using <txp:permlink>
like you did now. From the plugin help:
linkclass
The class attribute on the linkwraptag.
So if linkwraptag
is empty, no class will be assigned. But can’t you just style p.linkclass a
or span.linkclass a
?
Offline