solved Sidebar in Doc Module

Ceri
Ceri
@adolygwr
5 years ago
370 posts
I asked about this a week ago but in a two part question which I realise is not the best way to go about things. So today I am posing it as a separate enquiry.

Is it possible to develop a custom sidebar for the Documentation module? I imagine this would involve designing a new template and calling it from the other module templates? I must stress that I only want this new sidebar (which will consist mainly of links to the new language course I am developing) to appear on the Documentation module.

Many thanks in anticipation.


--
Ceri Shaw - AmeriCymru

updated by @adolygwr: 07/03/19 04:09:29AM
paul
@paul
5 years ago
4,325 posts
All created documents belong to a profile and are viewed as profile pages, so what I'd suggest is editing the relevent skin profile template and test the $_post.option variable to show either the regular code or your template code. I think you are using the Ninja skin so the skin template is profile_sidabar.tpl -

{if $_post.option == 'documentation'}
    <div class="col3">
        Custom code here
    </div>{else}
    <div class="col3">
      Regular code here
    </div>{/if}

hth


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 04/03/19 09:13:48AM
Ceri
Ceri
@adolygwr
5 years ago
370 posts
Thanks Paul....works perfectly :)


--
Ceri Shaw - AmeriCymru