TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 142
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 67
  • Total: 67

article system

Started by evulness, March 07, 2008, 02:46:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

evulness

why, when viewing an article category, index.php?cat=1, do my feature, and frontblocks load, under the category listing? every time, under every category

not article its self, but the category listing

and which tp template controls how articles, and their catagory listings are displayed?

IchBin

Frontpage settings controls how the frontpage blocks are shown. Take a look at the settings. TPortal.template.php controls the view of articles.

evulness

i don't see how i can get rid of the rest of the frontpage blocks loading, when i view a category listing...
from what i see, TP throws each article in the catagory list into its own new frontpage block at the top of the currently set blocks.
i'm not seeing anywhere to fix this...
to just have the articles in the cat list, rather than all frontpage items.

IchBin

Sorry, but I don't get what you're trying to achieve. How are you using Frontpage blocks? How do you want them to display top/bottom? Frontpage blocks will show while each article is viewed in a category because articles are considered "frontpage" in TP 0.9.8. If you don't want them to show use center blocks because you can turn them off in each article.

evulness

i'm using frontpage blocks, because i tried to have my frontpage set as follows:

<most recent announcement>
<feature article, which i use for my "site intro">
<users online block>

but no matter the configuration i tried using the center blocks, the "infocenter" was always shown on the frontpage above my users online block, and my announcements block would never sit above my feature article

i guess i could have edited templates and removed the info center, but that wouldn't have solved why my feature would always sit above my centerblocks...
unless thats a template issue also...
in which case... which template? tportal.template.php?

i mean, the way its set is fine, and is working perfect, but if i wanted to display the cat list page differently... where would i edit that? or rather how should i edit tportal.template to display only article listings in that catagory, and no center/frontpage blocks, when a user tries to view an article catagory?

IchBin

What you're asking for is not part of TP yet and the edits are beyond the scope of support that we really can provide. I suggest you wait until TP 1.0 comes out. Which we do not give release dates for.

evulness

its not the individual articles that i'm having issues with, i know i can turn the blocks and stuff off, showing only the article...
its the category listing, that shows blocks etc, where i don't want them to no matter my configuration.
because i have my categories listed in a menu block pointing to index.php?cat=1,2,3 etc... so my users can click the category, and see the list of articles under that category, without the rest of the "frontpage" clutter.

which i assume is what you say isn't doable right now.
do you happen to know how to query the databse, so i can list my own articles, under my own format, in a php article, or even in a block...
smf's way to do db query's confuses me,i'm learning, but it hasn't cooperated for me... but how would i query, and make an array using cat id, to pull all articles in that category, and list them with a foreach, like <title w/link> ~by<user><date>? i guess kinda like ssi_boardnews, but for tp articles...

IchBin

I'm sure if you look in the code snippets board you'll find something that is similar to help you get started.

evulness


This website is proudly hosted on Crocweb Cloud Website Hosting.