Topic-icon exclude 1 page from tags

Active Subscriptions:

None
9 years 4 months ago #49987 by rodster
Hi Alex,

Recently I added my preferred social tags within the template.
Now I realize I do not want my customed 404 page to have any social tags whatsoever.

Can i exclude one (or more) pages from loading the tag?
The topic has been locked.
Support Specialist
9 years 4 months ago #49992 by alzander
Replied by alzander on topic exclude 1 page from tags
If you have the tags on the page, there's no way for JFBConnect to automatically ignore them. That's not a feature we've every considered and likely wouldn't implement.

With that said though, I'm not sure where your 404 page is coming from, but the code itself should be passed to your template. You *should* be able to do something like:
<?php  if ($this->error->getcode() != '404') { ?>
  {SCOpenGraph ...} 
<?php } ?>
Add all the tags you want to display when the response code is *not* 404. That's untested, and your template may behave differently depending on what's generating the 404, how the template handles it, and if you have some special 404 component (which may need it's own work). The code from above came from the following Joomla docs:
docs.joomla.org/Custom_error_pages

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #49997 by rodster
Replied by rodster on topic exclude 1 page from tags
Hi Alex,

The custom 404 is the one that comes from the SH404sef component.

But issue fixed by going in JFBC settings and exclude social tags on article ID from 404 page.

That's it.

Cheers.

Rod
The topic has been locked.