Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-06-10 10:43:32

MichaelvdBerg
New Member
Registered: 2016-04-29
Posts: 3

Show more button

I have a question about a button. I have a button on a website with the text “Show more news”. This button will redirect to the newspage (.com/news/). Is it possible to get a dropdown list under the button when I click on the button? Without a redirect to the news page?

Please let me know how I can resolved this or if you need some more information.

Offline

#2 2016-06-10 16:47:06

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: Show more button

Hi Michael,

I take it that with button you mean link. What you describe is possible using the article_custom tag. Something like:

<txp:article_custom section="news" break="li" wraptag="ul">
<txp:permlink><txp:title /></txp:permlink>
</txp:article_custom>

Some css and possibly js needs to be added to hide/show the list the tags generate.
If we had more information we could direct you as to how to resolve it.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB