RocketTheme-Rokabs-1x

plumpbustlingInternet and Web Development

Dec 4, 2013 (3 years and 7 months ago)

96 views

RokTab Notes


Update override code: Active tab is in color, First tab blank

open this file

your
-
joomla
-
root/templates/rt_dominion_j15/html/mod_roktabs/default.php


line 136

$return .= "<li $class><span class=
\
"tab1
\
"><span class=
\
"tab2
\
">$title</span><
/span></li>
\
n";

should be

$return .= "<li class=
\
"$class
\
"><span class=
\
"tab1
\
"><span
class=
\
"tab2
\
">$title</span></span></li>
\
n";


How to Load Modules with RokTabs


I will create a new section and category that will be used for article to load the modules
.
You can skip these steps too if you don't want different section or category.


In your Joomla administrator panel,

1. Create a new section : Content >> Section Manager, then click the "New" button at the
right top. Let's give the section name, for exampl
e: RokTabs Modules Section, then click
"Save" button.


2. Create a new category : Content >> Category Manager, then click the "New" button at
the right top. Let's give the section name, for example: RokTabs Modules Category, then in
the Section field, choo
se "RokTabs Modules Section", then click "Save" button.


3. Let's create the article which will be used to load the module. Go to: Content >> Article
Manager, then click the "New" button at the right top.

I will create a "Latest News" module. Give the tit
le name, for example: Latest News. In the
section field, choose "RokTabs Modules Section". The category field will automatically
change to "RokTabs Modules Category".


Now, in the content editor field, put this:

LINE NUMBER ON/OFF

|
EXPAND/CONTRACT

|
SELECT ALL

1.


2.

{loadposition roktabs
-
01}

3.




Then click "Save" button.


4. Open
templateDetails.xml

on

<Joomla Root>/templates/<your template name>/templateDetails.xml


Find :

LINE NUMBER ON/OFF

|
EXPAND/CONTRACT

|
SELECT ALL

1.


2.

</positions>

3.




Above </positions>, add :

LINE NUMBER ON/OFF

|
EXPAND/CONTRACT

|
SELECT ALL

1.

<position>roktabs
-
01</position>



The result should
be :

LINE NUMBER ON/OFF

|
EXPAND/CONTRACT

|
SELECT ALL

1.


2.

<position>roktabs
-
01</position>

3.

</positions>



Save your file.


5. Now, back to your Joomla Admin panel. Go to: Extensions >> Module Manager

At right top, in "Select Type" field, choose "mod_latestnews", then click on "Latest News".

Set the position to "roktabs
-
01", and in the menus assignment, select "All"


6. Go to: Extensions >> Module Manager

At right top, in "Select Type" field, choose "mo
d_roktabs", then click on "RokTabs".

Set the position to any position you want to place the RokTabs.


In the right side Module Parameters, set:

Joomla section to: RokTabs Modules Section

Joomla category to: RokTabs Modules Section/RokTabs Modules Category


7. Done. You can repeat the same way
to load other modules in RokTab


Display more than 15 tab
s

if you need to display more than 15 items in roktabs, then you may try the following change in the
mod_roktabs/helper.php file:

(your on

risk, please make a safety copy first)


in line 25 find

LINE NUMBER ON/OFF

|
EXPAND/CONTRACT

|
SELECT ALL

1.

$count

=
15
;
//hardcode a max of 15 as that is the max
available to display



and change to

LINE NUMBER ON/OFF

|
EXPAND/CONTRACT

|
SELECT ALL

1.

$count

=
30
;
//hardcode a max of 15 as that is the max
available to display