Topics

Tribe Support

Tribe Support's Topics

Alex Hume

alex hume

June 05 2015

Please how to create html sections on anahita 4.1

I need help to create new content sections (html) en el anahita 4.1 and how to link it with the site menu and the mobile menu?

I appreciate any help.

Alex

There are some examples included in the Shiraz template that you can adopt in your custom template.

https://github.com/anahitasocial/anahita/tree/master/src/site/templates/shiraz/html/com_html/content

The static pages are simple php pages which means you have full control to code them in html, javascript, css, and php. They also give you complete access to the Anahita API so you can make queries and display one or many nodes (i.e actors, media, etc.)

The idea is that you can build a few effective landing pages for yourself.

Here are some examples of how you can construct links to those pages:

https://github.com/anahitasocial/anahita/blob/master/src/site/templates/base/html/menus/main.php

#static #pages #html #template
alex hume liked this
Alex Hume
alex hume
June 08 2015 Permalink
Thanks Rastin, I found a way to add HTML files (articles), but there is still a problem with the mobile menu? what class do I have to use to make the menu work on mobile? currently the menu items I add, get lost when in mobile view?

According to the file on the link you sent: https://github.com/anahitasocial/anahita/blob/master/src/site/templates/base/html/menus/main.php the class is , but when using it, menu items are shown on desktop but not on mobile, or do I also have to edit the other menu file mobile.php ?

Any help about this please?
Alex
Rastin Mehr liked this
The mobile menu is separate. On mobile screens the main menu is hidden and the mobile menu is displayed. At least in the current release. That could change in 4.2 release.

https://github.com/anahitasocial/anahita/blob/master/src/site/templates/base/html/menus/mobile.php

#mobile #menu

Powered by Anahita