Topic Closed

1. How do I include only the news addon in a template? Do I need to use

            <?php gpOutput::GetAllGadgets(); ?>

or is there some other code needed?

 

2. Also, if I want to use the news sidebar gadget directly inside a page content what code do I use? 

3. I want to change the name from 'Special_Blog' to 'News'. Which file do I edit for this?

Edited: 10 years ago#815

Charles S
448 Posts
13.7K Downloads
2 Themes
8 Plugins

Sorry, but can you tell me about this news addon you speak of? I don't see a plugin by that name.

The getallgadgets output function is all you need for all plugins. In gpEasy 1.7 you don't really even need that.

Nonetheless, I'm lost as to this news sidebar you are talking about.

10 years ago#831

I'm using the simple blog addon as news. sorry for the confusion. This is why I need to change the name from Special_Blog to News so in the urls it shows as News and not Special_Blog.

Edited: 10 years ago#832

Charles S
448 Posts
13.7K Downloads
2 Themes
8 Plugins

1. you can't change the URL of a Special page.

2. It sounds like you want a script that calls the last blog and inserts it somewhere? There is nothing like that that I've seen specifically for gpEasy. You would have to write the php for that yourself, I believe. 'File inclusion' doesn't work for blog pages.

10 years ago#835

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

HH-Support

Company located in T├│rshavn, Faroe Islands. * Webpage Design * Consultant & Provider of a wide range of programs for visually impaired and dyslextics.

Find out more about our Provider Spotlight

Log In

  Register