Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

latestinterviews template

  • Nikos Papanikolaou
  • Nikos Papanikolaou's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 9 months ago #136700 by Nikos Papanikolaou
latestinterviews template was created by Nikos Papanikolaou
hi,

i need the functionality of the latestinterviews template in the frontpage but with completely altered styling..
i noticed that in the list <ul><li> there is a lot of css inline..

is it possible to create a second template with latestinterviews functionality, but with my completely own css inline and external, or just go with a module and a class suffic and use "!important" on all rules?

for instance, i need more items to display in front page and not just two, i don't need radius and border spacing etc..

which is the safest way to go?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 9 months ago #136701 by Krikor Boghossian
Replied by Krikor Boghossian on topic latestinterviews template
Hello Nikos,

All the inline css are from the nuSlider JS script. I strongly suggest that you do not alter this script.

What you have to do is to copy the folder of the latestinterviews template and rename it. Then open the newly created .php file. You will notice that is well commented and you will not have any issues editing it (you will most likely only need to change the $count variable).

Then if you don not want to alter the latest interviews look & feel simply change the CSS classes of the module and the module suffix as well. Then use the existing classes and structure as a reference.

At this point since you are developing a completely custom site and you have used the template as a starting point you shouldn't focus on the upgradability as much as best coding practices.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Nikos Papanikolaou
  • Nikos Papanikolaou's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 9 months ago #136702 by Nikos Papanikolaou
Replied by Nikos Papanikolaou on topic latestinterviews template
for start i try the override solution using !important rules on css..

however, i was checking the site on other browser (i.e.) and there seems to be a problem with image sizing-resizing on itemListView in the k2 container..
more specifically the uploaded image that is fetched through the articles in the category section, doesnt seem to get resized in the i.e like on chrome.. there is an inline width:200px and to my understanding it seems that it sticks to that no matter what..
i review my custom template code, incase i had a rule that eould override existing ones, but the only one that overrides in that part is just a float:right and nothing more..

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #136703 by Yiota
Replied by Yiota on topic latestinterviews template
Try removing the float:left from div.catItemImageBlock for this specific view.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Nikos Papanikolaou
  • Nikos Papanikolaou's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 9 months ago #136704 by Nikos Papanikolaou
Replied by Nikos Papanikolaou on topic latestinterviews template
that did actually work :) thank you :)

new one :)

i want for each mitem of main menu to be able to add a class to the body tag.. the page class does add class but to interior div, is it possible to add also on the body tag?

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago - 10 years 9 months ago #136705 by Yiota
Replied by Yiota on topic latestinterviews template
You will have to add some code to your index.php file of the template.
under the inclusion of helper.php add this code snippet
$active = $menu->getActive();
if ($active) {  
  $pageSuffix = $active->params->get('pageclass_sfx');
  $bodyClass = $bodyClass." ".$pageSuffix;
}

This will append the page class suffix of your active menu item to the $bodyClass.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Nikos Papanikolaou
  • Nikos Papanikolaou's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 9 months ago #136706 by Nikos Papanikolaou
Replied by Nikos Papanikolaou on topic latestinterviews template
it worked like a charm :) thank you again Yiota

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #136707 by Yiota
Replied by Yiota on topic latestinterviews template
Could you please remove this question from this topic and open a new topic since your current question is irrelevant to the subject and no one could find a solution to this question if needs to?

Thank you.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum