Topic-icon Logged in Custom Menu Page Class Stripped...

I am finishing with the styling of the module on our site and about to move the module/component over to our live site when I noticed that the module strips away the page class suffix that is associated with the chosen menu in the user dropdown menu once they are logged in. I tried adding an alias but it still does the same thing. I have certain page styling specific to the menu page class so this is important for me. What do I need to add to include the original menu page class suffix and ensure it gets carried through the sc-login dropdown menu? Thanks,

Adam
The topic has been locked.
Support Specialist
8 years 10 months ago #53278 by alzander

I noticed that the module strips away the page class suffix that is associated with the chosen menu

Where/how are you setting the page class suffix on the menu? I'm not sure I understand what you're doing here as to whether you're setting some value on specific menu items or on the entire menu itself. If you can clarify this a bit more, that will help us narrow things down.

I guess the main thing to check is if the proper Itemid is being inserted into the URL. The Itemid, I believe, is what will be selecting the page class suffix that would be used.

Check that Itemid value in the URL and let us know how you're setting things up and we'll gladly help investigate however we can.

Thanks,
Alex
The topic has been locked.
8 years 10 months ago #53321 by adammelcher
Alex,

I think I figured it out. I was trying to link to a JomSocial toolbar menu item and it uses the main jomsocial menu item link's page suffix unless one is directly added to that jomsocial menu link. Long story short, when i was doing alias to a specific menu item, it was doing what it was supposed to and since there was nothing in the page class suffix box at the time, it was not displaying the page style. I have since added it to the specific menu item links that I am adding to the user drop down menu and all is good!

Another question, I am trying to see how to get the social meta/preview/create post toolbar to call the og tags for jevents pages (and other components). How would you recommend the best way to ensure that if a user shares the event detail page on facebook, that it won't display the general website description and image?

Thanks,

Adam
The topic has been locked.
Support Specialist
8 years 10 months ago #53333 by alzander

I have since added it to the specific menu item links that I am adding to the user drop down menu and all is good!

Awesome! I'm glad to hear you got that going. Wasn't sure of a good answer.. so glad I didn't have to come up with one :)

How would you recommend the best way to ensure that if a user shares the event detail page on facebook, that it won't display the general website description and image?

JFBConnect has Open Graph plugins which can help to automatically generate the best tags on a page based on the component that is being rendered. Unfortunately, we don't have a plugin specific to JEvents. Without a plugin, the following is what happens:
* JFBConnect looks for any {SCOpenGraph ..} tags on the page. These can be set by you on an individual page basis or you could even code them into the JEvents template files. The tags look like the below and do what you'd think they'd do:
{SCOpenGraph title=Title for this page}
{SCOpenGraph description=Description for this page}
{SCOpenGraph image=http://site.com/link-to-image-for-page.jpg}
* If an Open Graph tag isn't found for a value, then JFBConnect will fall back to the meta title or description for the page.

So, it's best to always make sure your meta titles and descriptions are good, since those are used by search engines normally and used by JFBConnect for Open Graph Tags if necessary. For the most control, set your own {SCOpenGraph ..} tags for the pages you really want to make sure has the right message.

I hope that helps explain and get things going for you but if you have any questions, just let me know!

Thanks,
Alex
The topic has been locked.