Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
I'd like to show a list of all cloned pages on every page but omitting the current one. Is this possible? I found the following topic which I thought would solve this but it isn't working. Maybe I misunderstood the original poster's intent. viewtopic.php?f=2&t=7366

How can I do this? I tried this, but it didn't work.
Code: Select all
<cms:pages masterpage='blog.php' id='NOT <cms:show k_page_id />' orderby='publish_date' limit='10'>
  <article class="archive-content-block">
    <h3 class="archive-title"><a href="<cms:show k_page_link/>"><cms:show k_page_title/></a></h3>
    <div class="archive-content">
        <cms:excerpt count='20'><cms:show blog_article/></cms:excerpt>
        <div class="more-link-wrapper">
            <a href="<cms:show k_page_link/>" class="more-link">More <i class="fal fa-arrow-right"></i></a>
You made a forgivable mistake while copy-pasting from other person's code - must use double quotes to make sure the expression inside is executed (and not treated as a mere 'string')
Code: Select all
 id="NOT <cms:show k_page_id />"
Thank you! I was tearing my hair out! I had no idea there was a difference between using double quotes vs. single quotes. I guess I should always use double quotes? FYI on this reference page, single quotes are used in the examples, so I'm a little confused on this.
No worries. Best explanation is in this docs page ... eters.html
Thanks for the link, very helpful.
5 posts Page 1 of 1

Who is online

In total there are 2 users online :: 0 registered, 1 hidden and 1 guest
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 1 guest