Keyword

Category Switcher

  • Tom
  • Tom's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 9 months ago #121841 by Tom
Category Switcher was created by Tom
Hi there,

Just wondering whether anyone could advise on the following...

I have 7 categories setup, each with their own blog view (using custom templates for colour theming).

What I would like to do, if at all possible(!) is to replace to front page blog layout (which currently just shows latest items) with one of the categories. This part I know is easily done. The feature I would like to implement is to have a 'switcher' which would allow users to scroll through each of the 7 categories.

Arrows along the side (such as on Metro.co.uk) would be ideal. Are there any components/ extensions out there that could achieve this? Or am I looking at custom development.

Many thanks in advance. Tom

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 #121842 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Category Switcher
Hello Tom,

This can be achieved with custom development only. If you want to navigate to another page you can use a custom mod_menu implementation or if you just want to update the component area you should use AJAX.

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

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

  • Tom
  • Tom's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 9 months ago #121843 by Tom
Replied by Tom on topic Re: Category Switcher
Thanks Krikor, I'll let you know if I discover anything interesting!

Not sure if it merits a separate post, but I'd like to replace the URL with standard 'Click here' text in the 'More information' field in the K2 userAdditionalInfo div.

Is this do-able?

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 #121844 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Category Switcher
Sorry Tom but I am a bit confused can you send me a link please of what you want to change?

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

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

  • Tom
  • Tom's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 9 months ago #121845 by Tom
Replied by Tom on topic Re: Category Switcher
Hi Krikor,

I would just like to replace the full URL with linked text in the K2 user profile.

In the backend, this input field is 'URL' and it sits between the image/ notes fields.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 9 months ago #121846 by Yiota
Replied by Yiota on topic Re: Category Switcher
So what you want to do is to replace the URL, i.e. http://.... with i.e. <a href=URL>Text</a>?

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

  • Tom
  • Tom's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 9 months ago #121847 by Tom
Replied by Tom on topic Re: Category Switcher
Hi Yiota - exactly that.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 9 months ago #121848 by Yiota
Replied by Yiota on topic Re: Category Switcher
I'm afraid that the Users URL is being constructed through this code

<span class="userURL">
<?php echo JText::_('K2_WEBSITE_URL'); ?>: <a href="<?php echo $this->user->profile->url; ?>" target="_blank" rel="me"><?php echo $this->user->profile->url; ?></a>
</span>

Since there is no other field available to keep the URL but add the text and convert the above code, a suggestion would be to add it in your user's description.

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


Powered by Kunena Forum