Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

SEO tagging of photo albums

10 years 10 months ago
  • John's Avatar
    Topic Author
  • John
  • Offline
  • Fresh Boarder
  • Posts: 23
  • Thank you received: 2
Licenses:
JomSocial Active Socialize Expired

I would like to have the description meta tag for my photo album pages be the same as the description of the album itself and also ideally add keyword tags to albums. Is this currently possible?

10 years 10 months ago
Licenses:

Hi John,

you can do it by using override. documentation.jomsocial.com/wiki/Customizing_Template
please follow this steps:
1. copy photos.album.php from /components/com_community/templates/default to /templates/protostar/html/com_community
2. edit that file (/templates/protostar/html/com_community)
after line 121 or below this code

if( ( $isOwner || $isAdmin ) || !empty($album->description) )
{
put this code
$doc = JFactory::getDocument();
$doc->setMetaData('description', str_replace( PHP_EOL, ' ', $album->description));

for keyword
$doc->setMetaData('keyword', value);

ref: docs.joomla.org/JDocument/setMetaData

if you don't know how to do it or get difficulty related the code. you can provide me FTP and Administrator access detail. By editing your first post at this topic. Put it at Site Info Form.

I will do it for you.

Regards,
Albert

10 years 10 months ago
  • John's Avatar
    Topic Author
  • John
  • Offline
  • Fresh Boarder
  • Posts: 23
  • Thank you received: 2
Licenses:
JomSocial Active Socialize Expired

Could you edit the attached file and put it back in the ticket? I can't find the line you are talking about.

10 years 10 months ago
Licenses:

Hi John,

as attached.

This attachment is hidden for guests.
Please log in or register to see it.

put this file at: /templates/protostar/html/com_community/
create new directory if not exist.

the code for meta I put below this "word"
// add meta descrition

Regards,
Albert

This message has an attachment file.
Please log in or register to see it.

The following user(s) said Thank You: John
10 years 10 months ago
  • John's Avatar
    Topic Author
  • John
  • Offline
  • Fresh Boarder
  • Posts: 23
  • Thank you received: 2
Licenses:
JomSocial Active Socialize Expired

That did the trick! Thank you!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW