Hide story descriptions & sidebar on main page | Plikli Customization | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?
sp_Feed sp_TopicIcon
Hide story descriptions & sidebar on main page
Avatar
Hiro
Member
Members
Forum Posts: 13
Member Since:
January 31, 2019
sp_UserOfflineSmall Offline
1
February 6, 2019 - 1:35 am
sp_Permalink sp_Print

Hey, another question. If I wanted to hide story descriptions on the main page, what template would I need to edit? I tried index_center.tpl but it didn't seem to contain the right code.

Also, if I wanted to remove the right sidebar what would I need to do? And if it's removed, would the story titles fill more of the page or would they still be compressed?

Many thanks

Avatar
redwine
Admin
Forum Posts: 357
Member Since:
February 21, 2018
sp_UserOfflineSmall Offline
2
February 6, 2019 - 2:19 am
sp_Permalink sp_Print

I moved this topic to customization as well.

1- The proper template file is the /link_summary.tpl.

However, this file is for all the stories and not just on the main page.

2- If you remove the sidebar, the width of the content column will remain the same. The make it wider you have to change the the class of the column.

The best way to see it is to go to your profile and see how the layout is without the sidebar. If this what you want, then check the content column width and apply it to the template of the page.

from what pages you want to remove the sidebar? all from all?

Avatar
Hiro
Member
Members
Forum Posts: 13
Member Since:
January 31, 2019
sp_UserOfflineSmall Offline
3
February 12, 2019 - 10:07 pm
sp_Permalink sp_Print

Yes, I was thinking of removing the sidebar from all pages. So this is also in link_summary.tpl, I would just copy the column width from the profile page?

As for the story descriptions, I removed the storycontent section but as you said it just removed it everywhere. Is it possible to just show the description on the Discuss page, kin d of how reddit does it?

Avatar
redwine
Admin
Forum Posts: 357
Member Since:
February 21, 2018
sp_UserOfflineSmall Offline
4
February 13, 2019 - 1:18 pm
sp_Permalink sp_Print

To hide the story description on the home and new pages, and still show them everywhere else, do the following:

1- Open /templates/bootstrap/link_summary.tpl
2- Look for

<span itemprop="articleBody">

and insert this code right before it:

{if $pagename neq "index" && $pagename neq "new"}

3- scroll down to find

</span>
{checkActionsTpl location="tpl_link_summary_end"}

4- insert {/if} between the two, to get this:

</span>
{/if}
{checkActionsTpl location="tpl_link_summary_end"}

Story description will not show on the home and new pages; only the title and toolsbar under it.

Avatar
Hiro
Member
Members
Forum Posts: 13
Member Since:
January 31, 2019
sp_UserOfflineSmall Offline
5
February 13, 2019 - 9:37 pm
sp_Permalink sp_Print

This works perfectly, thanks.

Forum Timezone: Asia/Beirut

Most Users Ever Online: 118

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

john: 47

Nishant kumar: 33

Mosage: 25

Punk: 23

Martin Gold: 22

Felipe: 22

Phelix: 17

yami: 14

StaticMove: 13

Hiro: 13

Newest Members:

Riya

Daniel

Rutika Patil

Mazharul Islam

Bright

Croma

Arohi Kashyap

gopal krishna

John_1

ariananesbitt

Forum Stats:

Groups: 1

Forums: 8

Topics: 122

Posts: 722

 

Member Stats:

Guest Posters: 0

Members: 154

Moderators: 0

Admins: 1

Administrators: redwine