solved Adding a menu the main menu of Projam5 Light

alt=
@scardwell
9 years ago
32 posts
Hi all,

Please could someone advise how I can add a menu and subsequent page to that menu in the main header of Projam5 Light next to the Blog menu.

Thanks
Stephen
updated by @scardwell: 05/10/15 02:27:54AM
davej56
@davej56
9 years ago
95 posts
Looks like I'm asking a similar question to Stephen's. I need to move a General Forum menu item from under the users' names to the top level menu. They aren't finding the forum, and it isn't available to non-members. How do I create a top-level menu item for my forum and the FAQ? I'm also using Projam5 Light.
douglas
@douglas
9 years ago
2,790 posts
scardwell:
Hi all,

Please could someone advise how I can add a menu and subsequent page to that menu in the main header of Projam5 Light next to the Blog menu.

Thanks
Stephen

You'll want to modify the skins/jrProJamLight/header_menu_desktop.tpl and skins/jrProJamLight/header_menu_mobile.tpl files to add/modify menu links, to create a new page, follow this:

https://www.jamroom.net/the-jamroom-network/documentation/development/1041/skin-development
https://www.jamroom.net/the-jamroom-network/documentation/development/1043/creating-a-new-page-for-a-skin


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
alt=
@scardwell
9 years ago
32 posts
Thanks Douglas.

Having problems deriving the code for the new menu. If I copy and paste an existing menu line of code, for example 'blogs', but change the name to for example 'FAQ', 'blogs' appears on the menu row instead of 'FAQ'. How do I make 'FAQ' appear?
douglas
@douglas
9 years ago
2,790 posts
That is most likely due to the jrCore_lang function.

replace this:

{jrCore_lang skin=$_conf.jrCore_active_skin id="10" default="Blog"}

with this:

{jrCore_lang module="jrFAQ" id="10" default="FAQ"}

https://www.jamroom.net/the-jamroom-network/documentation/development/783/jrcore-lang


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
davej56
@davej56
9 years ago
95 posts
I struggled through it myself, and managed to get FAQ on the menu. What is the ID for forum?
michael
@michael
9 years ago
7,714 posts
davej56:....What is the ID for forum?...

Not exactly sure what your after there, if your meaning the module url for the forum module, you can get that with:
{jrCore_module_url module="jrAction" assign="murl"}
then use it in the url by {$murl}
eg:
{$jamroom_url}/{$murl}

Or you might be after the ID of a specific forum on your site, in which case you'd go to the location your after and look in the address bar to see what number it is.
davej56
@davej56
9 years ago
95 posts
I have the forum where it will create a link, but the ID puts the link name up. Like 10 is for FAQ. What is for "Forum" in the link name? I used what Douglas said to use above for code, but ID="10" gave me the "FAQ" name in the menu. I've tried different numbers, but I didn't come up with "Forum" as the link name.
updated by @davej56: 03/31/15 03:09:21AM
douglas
@douglas
9 years ago
2,790 posts
If you need to find the ID to a language string, and your skins/YOURSKIN/lang/en-US.php file doesn't have it, you can open the modules/MODULENAME/lang/en-US.php file to get the ID... this is from the skins/jrNingja/lang/en-US.php, the ID is in bold text.

$lang[47] = 'Forum';

so the jrCore_lang function would be:

{jrCore_lang skin=$_conf.jrCore_active_skin id="47" default="Forum"}

If your skins lang file does not have the text your looking for, you can either add it to your lang file or see if the module has the text.

From the jrForum modules lang file:

$lang[36] = 'Forum';

so the jrCore_lang function would be:

{jrCore_lang module="jrForum" id="36" default="Forum"}

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 03/31/15 03:23:55AM
davej56
@davej56
9 years ago
95 posts
That got it Douglas. I used the "36" and the name "Forum" popped up on my main menu now. Thank you!
douglas
@douglas
9 years ago
2,790 posts
Your welcome! :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
douglas:
If your skins lang file does not have the text your looking for, you can either add it to your lang file or see if the module has the text.

I asked about this a couple months ago- I see where/how we can EDIT the existing entries in our language files for each module and skin...such as change the ID language word "profiles" to "members", or change "Images" to "Photos" etc. But I still don't see how we can ADD a NEW word or term and corresponding ID number to any of our language files, at least through our ACP. Is this possible, and how?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
michael
@michael
9 years ago
7,714 posts
Strumelia:....I still don't see how we can ADD a NEW word or term and corresponding ID number to any of our language files, at least through our ACP. Is this possible, and how?.....

Its not possible right now to add new language strings to modules.

What I would suggest is to add it to your skin if its a cloned skin.

Skin language files appear at:
ACP -> SKINS -> YOUR SKIN -> LANGUAGE

And can be output with:
{jrCore_lang id="28" default="By"}
even in the modules .tpl files.

That protects you from any incrementation issues if they module does get new language strings added to it in future.

If your not using more than one language, then the best options is to justs go ahead and enter the text you want where you want it.
alt=
@scardwell
9 years ago
32 posts
@Douglas, @Michael

Thanks for all your help here - appreciated. I now have now created a menu :)
Just need some guidance on adding a page to the menu. I have looked at your help guide - I am guessing that I cannot do this within Jamroom, but need to do this server side?

Stephen
douglas
@douglas
9 years ago
2,790 posts
Yes, you'll want to create the new page template and then upload it via FTP.

So if you create a file named new-page.tpl and upload it to your skins/YOURSKIN directory, using and FTP program like Filezilla, then you can reach that page by pointing your browser to yoursite.com/new-page.

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
michael
@michael
9 years ago
7,714 posts
scardwell:....I am guessing that I cannot do this within Jamroom, but need to do this server side?...
The Site Builder system is being built to address that problem. We're finalizing a new version of it that should be easier to use now. Keep an eye out for it soon.

For now though, just like Douglas said, upload a file to your skin:
/skins/(YOUR SKIN)/somename.tpl

will come out at
your-site.com/somename

So use whatever name you like. If you want a page at your-site.com/hippos then make the file at
/skins/(YOUR SKIN)/hippos.tpl

and whatever you put in there will appear.

Check out the index.tpl file in your skin to see how to get the header and footer in there.
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
I've only made templates before in drawing programs...totally different animal.
Is there a help location where I can learn specifically about the basic steps to CREATE a new template in Jamroom? I have no clue about what program/editor I need to be in to create, name, and edit a new template, or what initial necessary code I would need to start one with.
Thanks!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

Tags