How to remove the current page from a list of pages? #795
-
Dears, this is related to discussion #455 from 2019, but I need help on implementing the proposed solution (if it is still valid). Just like #455, I have a blog page and I want to include a section linking to related blogposts. My goal is to "filter out" and hide the current page from this link list. I have seen the solution using (diff), but my PHP is not sufficient enough: I am not sure where and how to exactly implement this (in blog.php? in core.php? elsewhere?) Any help appreciated, as always! Cheers, Carsten |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Dears, Unfortunately, I can't program this myself, as my PHP knowledge is not sufficient ... Maybe someone has had a similar problem and solved it before? I'm sure I'm not the only one who runs a blog and assigns tags to blog posts, using the blogpages/blogchanges syntax. Maybe there is a creative approach to using the tags without changing the programming? Cheers, Carsten |
Beta Was this translation helpful? Give feedback.
-
This is now possible. Here is an example snippet to remove the current page from a page collection:
Does this solve your problem? |
Beta Was this translation helpful? Give feedback.
-
Apologies, but could you please be specific where to put the code in blog.php and/or what lines of code to replace? Then I can test. Cheers, Carsten |
Beta Was this translation helpful? Give feedback.
This is now possible. Here is an example snippet to remove the current page from a page collection:
Does this solve your problem?