Jump to content

get the announcement issue

Go to solution Solved by andrezzz,

Recommended Posts

When I write the following code in header.tpl, it only shows on the home page and announcement page, I want it to show on all pages, can anyone help me?

							{foreach $announcements as $announcement}
                    {if $announcement@index < 1}
                    <li class="nav-item">
                      <a class="nav-link" aria-current="page"
                        href="{routePath('announcement-view', $announcement.id, $announcement.urlfriendlytitle)}">


Link to comment
Share on other sites

1 minute ago, andrezzz said:

How are you?

Seems like that the Smarty Variable announcements,  it's only sent on certain pages, as you told. For this, I made a Hook to add to every page. Can you test it out?
Upload the file, in attachments, to the folder `includes/hooks/`, on your WHMCS root.

Kind regards.

AnnouncementsAllClientAreaPages.php 1.98 kB · 0 downloads

Special thanks to you! It worked as expected.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated