How to add content in #gkHeader (after menu, like on main)?
Start-up Joomla template with amazing CSS3 animated icons, price tables and parallax effect background.
Rate this topic: 1.00 out of 6 based on 1 vote(s)
- GK User
- Tue Nov 24, 2015 10:15 pm
- Reply with quote
- Report this post
I need to add content inside #gkHeader (like on main page) of template, but all I can it's create another #gkHeader (double) as K2 item and locate content in it
I've just figured out page suffixes, but it solved my problem not completely...
- Code: Select all
<header id="gkHeader"><!-- <---------- SYNTAX ERROR: TWO ELEMENTS WITH THE SAME ID -->
<div>
<div class="gkPage" id="gkHeaderNav">[MENU]</div>
</div>
<!-- <<< I need the [NEEDED CONTENT] to be HERE (in this #gkHeader) >>> -->
</header>
<div id="gkPageContent" class="gkPage">
<section id="gkContent">
<div id="gkContentWrap">
<section id="gkMainbody">
<article id="k2Container" class="itemView">
<div class="itemBody containsItemInfo">
<header>
<h1>О себе 2</h1>
</header>
<div class="itemFullText">
<style type="text/css">
h2 { font-weight:300 !important; }
article header:first-child { display:none !important; }
</style>
<header id="gkHeader"><!-- <---------- SYNTAX ERROR: TWO ELEMENTS WITH THE SAME ID -->
<div id="gkHeaderMod" class="gkPage" style="max-width: 100% !important; width: 100% !important; margin:0 !important;">
! [NEEDED CONTENT] !
</div>
</header>
My other content...
</div>
</div>
</article>
</section>
</div>
</section>
</div>
I've just figured out page suffixes, but it solved my problem not completely...
-
- Expert Boarder
- GK User
- Tue Nov 24, 2015 10:24 pm
- Reply with quote
- Report this post
I think I need play around with positions, but positions only available for modules, not by articles (K2 items). Please figure me out
-
- Expert Boarder
- teitbite
- Wed Nov 25, 2015 9:03 pm
- Reply with quote
- Report this post
Hi
Can You tell me the url to example page where You wish to add this and tell me where to add it exactly ?
Can You tell me the url to example page where You wish to add this and tell me where to add it exactly ?
-
- Moderator
- GK User
- Fri Nov 27, 2015 8:26 pm
- Reply with quote
- Report this post
Main page (landing):
http://derka.pickupguild.ru/
Page which I have to styled like main:
http://derka.pickupguild.ru/mr-derka/o-sebe2
http://derka.pickupguild.ru/
Page which I have to styled like main:
http://derka.pickupguild.ru/mr-derka/o-sebe2
-
- Expert Boarder
- GK User
- Fri Nov 27, 2015 8:42 pm
- Reply with quote
- Report this post
Into block with ID gkHeader in template
-
- Expert Boarder
- GK User
- Fri Nov 27, 2015 8:45 pm
- Reply with quote
- Report this post
On main page it realised as position. So it able to create any module with position "header" - and it will like I wish... But positions only available for main page, or I mistaken?
-
- Expert Boarder
- teitbite
- Sat Nov 28, 2015 6:40 pm
- Reply with quote
- Report this post
Hi
Positions are available on all the pages. Please send me an access to joomla panel so I'll check why You cannot use this module position.
Positions are available on all the pages. Please send me an access to joomla panel so I'll check why You cannot use this module position.
-
- Moderator
- GK User
- Sat Nov 28, 2015 7:42 pm
- Reply with quote
- Report this post
How do I can create new position for certain page? I think it somehow realisable by editing default template layout
-
- Expert Boarder
- GK User
- Sun Nov 29, 2015 1:19 pm
- Reply with quote
- Report this post
Tell me please how to specify that page in layout
-
- Expert Boarder
- teitbite
- Sun Nov 29, 2015 2:25 pm
- Reply with quote
- Report this post
Hi
You can create a module position and make it display only on a page with ID for example 1001.
but I do not think it's necessary in this case. Send me an access to joomla panel. I'll check it.
You can create a module position and make it display only on a page with ID for example 1001.
- Code: Select all
<?php if( JRequest::getVar('Itemid') == 1001 ): ?>
<jdoc:include type="modules" name="exampleposition" style=" />
<?php endif; ?>
but I do not think it's necessary in this case. Send me an access to joomla panel. I'll check it.
-
- Moderator
- GK User
- Sun Nov 29, 2015 6:55 pm
- Reply with quote
- Report this post
Can you do it via Skype: mr.ndruce?
-
- Expert Boarder
- GK User
- Sun Nov 29, 2015 6:55 pm
- Reply with quote
- Report this post
I'll show you screen
-
- Expert Boarder
- GK User
- Sun Nov 29, 2015 8:09 pm
- Reply with quote
- Report this post
Solved, thanks! But with JRequest::getInt('id') instead of JRequest::getVar('Itemid')
-
- Expert Boarder
- teitbite
- Mon Nov 30, 2015 12:40 pm
- Reply with quote
- Report this post
Hi
Ok, but "JRequest::getInt('id')" is to attache something to an article by it's ID. You asked how to attach something to a page and pages are using JRequest::getVar('Itemid'). This two things may be the same in Your case, or You may have articles not attach to pages at all. It all depends from menu structure. Anyway I'm glad it's solved.
Ok, but "JRequest::getInt('id')" is to attache something to an article by it's ID. You asked how to attach something to a page and pages are using JRequest::getVar('Itemid'). This two things may be the same in Your case, or You may have articles not attach to pages at all. It all depends from menu structure. Anyway I'm glad it's solved.
-
- Moderator
14 posts
• Page 1 of 1