Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

Showing blog articles on portal

Aloittaja MarkoKg, tammikuu 07, 2014, 06:47:49 IP

« edellinen - seuraava »

MarkoKg

Hello there,

Using 2.0.6 version + SP.
I currently have customized manual edited way of showing blog posts on portal page, by using custom fileds in admin panel and following code in SP block for every blog post:

          <Div class="EntryDesc">
            <a href="' . $modSettings['imenu_blog2'] . '" class="blog-article-a"><h3>' . $modSettings['imenu_heading2'] . '</h3></a>
            <p>' . $modSettings['imenu_title2'] . '</p>
          </Div>

I have imenu_blog2, imenu_heading2 fields in admin panel, and so on, so when I change values there I have changed blog posts. (See attached images to see how it looks now).

Now what I'd like to do is to make it work a little bit easier for editors, because whenever i want to add new blog post to portal page i have to manually move content of all fielnds to next place in order to leave first (imenu_blog1, imenu_heading1 etc) empty and to be able to add new blog post there, so it appears at the first place when loading portal.

So what I currently have is:
- have 4 fields in admin panel for each blog like I have now (imenu_blog1, imenu_heading1, imenu_title1 and imenu_url1)
- have 6 blogs total, like i have now (see attached image 2, although the sixth item is not visible there)
and what I would like to change:
- to be able to for example have unlimited number of blogs in admin panel, for example to have something like "Add new" button and when I click on it i got new blog fields and that latest blog is showed as first one in a row at portal. If there is more than 6 blog items in admin panel, the first one is not showing. For example If i have 10 entries - only 6 is showed on portal, and 6 latest one, so the first 4 is not shown anywhere.

I know I'm asking too much, but as I couldn't find better way of dealing with this after I had to try to search for help here.

Sorry if I didn't explained what i want clear enough, my English is not that good.  :-[

EDIT: Forgot to mention, I'm using SMFBlog mod, but it doesn't matter i think, because I just need to basically add custom link, description and title to portal page through custom fields I made in admin panel, if that's possible in a way i imagined.

EDIT2: I thought to use news system that SMF has, and that is something that would work, but instead of 1 field that every news item has I would need a 4 items, and that's why I think that it would be too complicated to make it work.


Regards,
Marko

TheListener

Please use the mods support topic.

Alternatively you can use www.simpleportal.net

MarkoKg

Thanks for your quick answer.
Actually, this is not related to any mod per se. This is custom modification, and SP is only used to display it through block. I can put the code in index.template as well, it doesn't matter, I just need some help about way to manage this, so it's displaying latest custom fields instead of first ones.

Advertisement: