Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Feedback to: Textpattern CMS 4.8.0 Released
I may have been using it wrong in the past. But it worked, so maybe it was a bug that is now corrected.
But I would do something like <txp:variable name = ‘previous_page’ value = ‘<txp:permlink />’ />
Then somewhere else, I could do ‘Go back to <txp:variable name =“previous_page”/>’
(Obvs not correct linking code)
But the <txp:variable name =“previous_page”/> is now empty on a different page.
Offline
Re: Feedback to: Textpattern CMS 4.8.0 Released
Try
<txp:variable name="previous_page" value='<txp:permlink />' />
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Feedback to: Textpattern CMS 4.8.0 Released
Hmmm, the approach works for me. In the default form, for example:
<txp:variable name="previous_page"><txp:link_to_prev /></txp:variable>
Go back to <a href="<txp:variable name="previous_page" />">Previous page</a>
If I click on the link, it jumps back an article at a time.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Feedback to: Textpattern CMS 4.8.0 Released
It doesn’t work. That’s what is so weird.
If I do <txp:variable name=“previous_page” value=’<txp:permlink />’ />
Then immediately do <txp:variable name=“previous_page” /> it is correct.
But if I put <txp:variable name=“previous_page” /> on a different page, it’s empty.
But was I always doing it wrong? Should it be done in forms?
Offline
Re: Feedback to: Textpattern CMS 4.8.0 Released
amordecosmos wrote #321986:
But if I put
<txp:variable name="previous_page" />
on a different page, it’s empty.
By different page I take it that you mean txp page (template). It would not work like this as variables should be in all pages that make use of them. If it was working before it was definitely a bug.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Feedback to: Textpattern CMS 4.8.0 Released
amordecosmos wrote #321986:
if I put <txp:variable name=“previous_page” /> on a different page, it’s empty.
If it worked this way before, it was definitely a bug. There’s no variable state remembered from page to page. You need to treat each request as a discrete event and set everything you might need on it at the start of the page flow.
Sorry for the inconvenience if it really did work this way before: honestly never noticed.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Feedback to: Textpattern CMS 4.8.0 Released
Cheers for all the hard work, chaps.
Just pre-flighting an upgrade, and noticed that css.php
and .htaccess
in sites/site1/public
have not been updated to correspond to the changes in their top-level counterparts, and it looks to me as though they should.
Code is topiary
Offline
Re: Feedback to: Textpattern CMS 4.8.0 Released
jsoo wrote #321993:
Just pre-flighting an upgrade, and noticed that
css.php
and.htaccess
insites/site1/public
have not been updated to correspond to the changes in their top-level counterparts, and it looks to me as though they should.
Hi Jeff – I think this is now done in dev
, should be released with 4.8.1.
Last edited by gaekwad (2020-03-02 14:06:01)
Offline
Re: Feedback to: Textpattern CMS 4.8.0 Released
Excellent, thank you.
Code is topiary
Offline
#22 2020-03-26 21:03:33
- wavesource
- Member
- From: Australia
- Registered: 2011-08-02
- Posts: 56
Re: Feedback to: Textpattern CMS 4.8.0 Released
It is a thing of beauty. Thank you.
Offline
Re: Feedback to: Textpattern CMS 4.8.0 Released
i am looking forward to trying it out, but i have decided to await the 4.8.1 release as it is to address some issues identified by others.
…. texted postive
Offline
#24 2020-04-01 10:27:42
- singaz
- Member
- Registered: 2017-03-12
- Posts: 150
Re: Feedback to: Textpattern CMS 4.8.0 Released
Textpattern 4.8.0
<txp:author link="1" this_section="0" />
<txp:category link="1" this_section="0" />
In which field to fix?
tag_author
or
author
And categories, which field to fix:
tag_category
or
category
or
category_tags
?
Sorry my horror English. I’m learning textpattern, I’m learning English
Offline