TinyPortal

Development => Support => Topic started by: Elen on January 28, 2009, 12:35:34 PM

Title: Article Category Layout
Post by: Elen on January 28, 2009, 12:35:34 PM
I'm having problems getting the layout the way I want it.  I want all the articles, one underneath the other.  In the category settings I've selected Layout A, Normal Article.  When I view the article page, the first article intro is the width of the page (which is what I want); the 2nd is in a block on the LH-side, the 3rd, 4th and 5th are in blocks on the RH-side.  What options do i have to select to get them all across the whole width, one underneath the other?

I'm using SMF 1.1.7 and TP 1.0.5 beta
Title: Re: Article Category Layout
Post by: Ken. on January 28, 2009, 12:57:34 PM
Take a look in:
Admin>TinyPortal>Settings and Frontpage>Frontpage ... you'll find controls for the f/p layout there.
See if that gives you what you need.
Title: Re: Article Category Layout
Post by: Ken. on January 28, 2009, 01:02:17 PM
Which version of TP are you running? Give us a link to the site we are working with please.
(The site listed in your profile shows as TinyPortal v0.9.)
Title: Re: Article Category Layout
Post by: Crip on January 28, 2009, 01:04:02 PM
Quote
I'm using SMF 1.1.7 and TP 1.0.5 beta
Title: Re: Article Category Layout
Post by: Elen on January 28, 2009, 01:09:20 PM
I just upgraded to TP 1.0.6 and all the articles have vanished so it's academic now anyway.
Title: Re: Article Category Layout
Post by: Ken. on January 28, 2009, 01:13:41 PM
Quote from: Elen on January 28, 2009, 01:09:20 PM
I just upgraded to TP 1.0.6 and all the articles have vanished so it's academic now anyway.
Check to see if your articles are in categories... they must be before they will display.
Title: Re: Article Category Layout
Post by: Elen on January 28, 2009, 01:16:07 PM
They were in a category.  Now there's no trace of them at all, they have completely vanished.  I can't see them to put them in a category.

They were in a sub-category of a parent category called "Library".  When i click on Library to see if they are there I get an error message :

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 64 bytes) in /home2/hulanthe/public_html/enlight/Sources/TPortalAdmin.php on line 2277
Title: Re: Article Category Layout
Post by: Ken. on January 28, 2009, 01:18:55 PM
When you go:
Admin>TinyPortal>Articles and Categories>Articles... do you see any listing of your articles?

EDIT: Didn't see your edit until after I posted my reply...
Standby for a while as we wait for one of our file code specialists to see this topic.
Title: Re: Article Category Layout
Post by: Elen on January 28, 2009, 01:22:56 PM
What I see are 2 category folders.  One called General and the other Called Library.  When I click on General I can see the one article in there listed.
Title: Re: Article Category Layout
Post by: Crip on January 28, 2009, 01:25:06 PM
With that type of error it's usually server related as I've been told ?
Title: Re: Article Category Layout
Post by: Elen on January 28, 2009, 01:28:32 PM
How would I go about going back to TP 1.0.5?
Title: Re: Article Category Layout
Post by: Elen on January 28, 2009, 01:58:31 PM
I've been digging around.  All the articles are still there.  If I make the missing category a non-child category it then shows up and I can see the articles there.  I've tried setting the theme back to the default, just in case that had a bearing  but whatever the theme, the actual content of the article doesn't show up. (This is when trying to view them as a user, not edit them in the Admin screen)
Title: Re: Article Category Layout
Post by: Ken. on January 28, 2009, 02:11:50 PM
In your admin screen for one of the articles check the 'Status' to make sure that it is set to 'Article is active'
Title: Re: Article Category Layout
Post by: Elen on January 28, 2009, 02:15:44 PM
All the articles have the green button lit.  I can see all the articles as long as the category isn't a child category - setting it to be a sub-category seriously buggers things up - clicking on the parent category produces the error posted above.

I've attached a screen shot.  Can I just ask what the boxes down the LH-side with 0 in are?
Title: Re: Article Category Layout
Post by: Elen on January 28, 2009, 02:38:26 PM
I seem to have fixed it.  I found the answer here http://www.tinyportal.net/index.php/topic,27217.0.html

QuoteIf you have frontpage blocks turned on, turn them off and the articles should show.

I couldn't find a frontpage setting relating specifically to blocks but selected :

What to display on frontpage: Only articles

and now my articles show up!
Title: Re: Article Category Layout
Post by: IchBin on January 28, 2009, 02:45:00 PM
Good on you for using the search Elen! :up: The last couple of beta's have had some big bugs that got by. Hoping to see TP beta3 out soon fixing most of these.
Title: Re: Article Category Layout
Post by: Elen on January 28, 2009, 02:49:28 PM
Quote from: IchBinâ„¢ on January 28, 2009, 02:45:00 PM
Good on you for using the search Elen! :up: The last couple of beta's have had some big bugs that got by. Hoping to see TP beta3 out soon fixing most of these.

Well, if it's not on there already, you can add article sub-categories to the list :)  I'm just relieved to have it working.  I hate the skinking feeling I get when everything's fubar and I have no idea what's even gone wrong, never mind how to fix it.  As always, the answer is usually here somewhere :D
Title: Re: Article Category Layout
Post by: ZarPrime on January 28, 2009, 02:59:33 PM
On that problem with articles in child categories not showing, I believe that is a reported bug, but I can't place my fingers on it right now.  If I remember correctly, it had something to do with the fact that if you didn't have an article in a main category, but only had child categories under that main category, then the articles in the child categories wouldn't show.  The temporary fix was to put an article in the main category as well.

Again, I may be slightly wrong on this because I can't find the bug right now, but you might try this to see if that works.

ZarPrime
Title: Re: Article Category Layout
Post by: Elen on January 28, 2009, 03:02:44 PM
I think that must be wrong as I did have an article in the parent category.  It's no big deal anyway, I can get things working acceptably without using sub-categories.