• Page 1 of 1
  • 1
uCoz Community » uCoz Modules » Site News & Blogs » View entry of specific category (w/o informer) (View entries of specific category on page without informer)
View entry of specific category (w/o informer)
NormalX
Posts: 94
Reputation: 7

Message # 1 | 7:32 AM
I have created a tutorial on this link - http://orginaz.ucoz.com/lab/

***This is not for advertisement purpose, in fact there is nothing on the site (its just for experimenting)

I just wanted to share this method
Sunny
Posts: 9296
Reputation: 456

Message # 2 | 2:16 PM
NormalX, it's better if you provide the text of the tutorial here. In this case if you decide to stop using the website, the info won't be lost. You can keep the link to your website in the post since you are the author.
I'm not active on the forum anymore. Please contact other forum staff.
NormalX
Posts: 94
Reputation: 7

Message # 3 | 3:11 PM
*Customize Desgin > Site News > Appearance of entries

**Remove everything in red when pasting your Appearance of entries codes

Demo - http://orginaz.ucoz.com/

Each page must have $LAST_NEWS$, for entries to appear

---------------------------------------------------------------------

One specific category on specific page

<?if($URI_ID$=='nwArchive' || $URI_ID$=='page1')?>

Copy and paste Appearance of entries here
This if statement allows all entries to display on page1 (homepage) & nwArchive (/news)


<?endif?>

<?if($CID$==1&&$URI_ID$=='page2')?>

Copy and paste Appearance of entries here
This if statement only allows $CID$==1 to be displayed on page2


<?endif?>

<?if($CID$==2&&$URI_ID$=='page3')?>

Copy and paste Appearance of entries here
This if statement only allows $CID$==2 to be displayed page3


<?endif?>

---------------------------------------------------------------------

Multiple Category on specific page (i.e. Page4)

<?if(($CID$==2 || $CID$==3)&&$URI_ID$=='page4')?>

Copy and paste Appearance of entries here
This if statement only allows $CID$==2 and $CID$==3 to be displayed page4


<?endif?>

---------------------------------------------------------------------

Full code for my Appearance of entries

Code


<?if($URI_ID$=='nwArchive' || $URI_ID$=='page1')?>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="eBlock"><tr><td style="padding:3px;">
<?if($MODER_PANEL$)?><div style="float:right">$MODER_PANEL$</div><?endif?>
<div class="eTitle" style="text-align:left;"><a href="$ENTRY_URL$">$TITLE$</a></div>
<?if($MESSAGE$)?><div class="eMessage" style="text-align:left;clear:both;padding-top:2px;padding-bottom:2px;">$MESSAGE$</div><?endif?>
<?if($ATTACHMENTS$)?><div class="eAttach">Attachments: $ATTACHMENTS$</div><?endif?><div class="eDetails" style="clear:both;">
<?if($RATING$)?><div style="float:right"><?$RSTARS$('15','/.s/t/1061/rating.png','0','float')?></div><?endif?>
<?if($CATEGORY_NAME$)?><span class="e-category"><span class="ed-title">Category:</span> <span class="ed-value"><a href="$CATEGORY_URL$">$CATEGORY_NAME$</a></span></span><span class="ed-sep"> | </span><?endif?>
<span class="e-reads"><span class="ed-title">Views:</span> <span class="ed-value">$READS$</span></span><span class="ed-sep"> | </span>
<?if($USERNAME$)?><span class="e-author"><span class="ed-title">Added by:</span> <span class="ed-value" ><a href="$PROFILE_URL$">$USERNAME$</a></span></span><span class="ed-sep"> | </span><?endif?>
<span class="e-date"><span class="ed-title">Date:</span> <span class="ed-value" title="$TIME$">$DATE$</span></span>
<?if($COMMENTS_URL$)?><span class="ed-sep"> | </span><a class="e-comments" href="$COMMENTS_URL$">Comments ($COMMENTS_NUM$)</a><?endif?>
</div></td></tr></table><br />
<?endif?>

<?if($CID$==1&&$URI_ID$=='page2')?>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="eBlock"><tr><td style="padding:3px;">
<?if($MODER_PANEL$)?><div style="float:right">$MODER_PANEL$</div><?endif?>
<div class="eTitle" style="text-align:left;"><a href="$ENTRY_URL$">$TITLE$</a></div>
<?if($MESSAGE$)?><div class="eMessage" style="text-align:left;clear:both;padding-top:2px;padding-bottom:2px;">$MESSAGE$</div><?endif?>
<?if($ATTACHMENTS$)?><div class="eAttach">Attachments: $ATTACHMENTS$</div><?endif?><div class="eDetails" style="clear:both;">
<?if($RATING$)?><div style="float:right"><?$RSTARS$('15','/.s/t/1061/rating.png','0','float')?></div><?endif?>
<?if($CATEGORY_NAME$)?><span class="e-category"><span class="ed-title">Category:</span> <span class="ed-value"><a href="$CATEGORY_URL$">$CATEGORY_NAME$</a></span></span><span class="ed-sep"> | </span><?endif?>
<span class="e-reads"><span class="ed-title">Views:</span> <span class="ed-value">$READS$</span></span><span class="ed-sep"> | </span>
<?if($USERNAME$)?><span class="e-author"><span class="ed-title">Added by:</span> <span class="ed-value" ><a href="$PROFILE_URL$">$USERNAME$</a></span></span><span class="ed-sep"> | </span><?endif?>
<span class="e-date"><span class="ed-title">Date:</span> <span class="ed-value" title="$TIME$">$DATE$</span></span>
<?if($COMMENTS_URL$)?><span class="ed-sep"> | </span><a class="e-comments" href="$COMMENTS_URL$">Comments ($COMMENTS_NUM$)</a><?endif?>
</div></td></tr></table><br />
<?endif?>

<?if($CID$==2&&$URI_ID$=='page3')?>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="eBlock"><tr><td style="padding:3px;">
<?if($MODER_PANEL$)?><div style="float:right">$MODER_PANEL$</div><?endif?>
<div class="eTitle" style="text-align:left;"><a href="$ENTRY_URL$">$TITLE$</a></div>
<?if($MESSAGE$)?><div class="eMessage" style="text-align:left;clear:both;padding-top:2px;padding-bottom:2px;">$MESSAGE$</div><?endif?>
<?if($ATTACHMENTS$)?><div class="eAttach">Attachments: $ATTACHMENTS$</div><?endif?><div class="eDetails" style="clear:both;">
<?if($RATING$)?><div style="float:right"><?$RSTARS$('15','/.s/t/1061/rating.png','0','float')?></div><?endif?>
<?if($CATEGORY_NAME$)?><span class="e-category"><span class="ed-title">Category:</span> <span class="ed-value"><a href="$CATEGORY_URL$">$CATEGORY_NAME$</a></span></span><span class="ed-sep"> | </span><?endif?>
<span class="e-reads"><span class="ed-title">Views:</span> <span class="ed-value">$READS$</span></span><span class="ed-sep"> | </span>
<?if($USERNAME$)?><span class="e-author"><span class="ed-title">Added by:</span> <span class="ed-value" ><a href="$PROFILE_URL$">$USERNAME$</a></span></span><span class="ed-sep"> | </span><?endif?>
<span class="e-date"><span class="ed-title">Date:</span> <span class="ed-value" title="$TIME$">$DATE$</span></span>
<?if($COMMENTS_URL$)?><span class="ed-sep"> | </span><a class="e-comments" href="$COMMENTS_URL$">Comments ($COMMENTS_NUM$)</a><?endif?>
</div></td></tr></table><br />
<?endif?>

<?if(($CID$==2 || $CID$==3)&&$URI_ID$=='page4')?>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="eBlock"><tr><td style="padding:3px;">
<?if($MODER_PANEL$)?><div style="float:right">$MODER_PANEL$</div><?endif?>
<div class="eTitle" style="text-align:left;"><a href="$ENTRY_URL$">$TITLE$</a></div>
<?if($MESSAGE$)?><div class="eMessage" style="text-align:left;clear:both;padding-top:2px;padding-bottom:2px;">$MESSAGE$</div><?endif?>
<?if($ATTACHMENTS$)?><div class="eAttach">Attachments: $ATTACHMENTS$</div><?endif?><div class="eDetails" style="clear:both;">
<?if($RATING$)?><div style="float:right"><?$RSTARS$('15','/.s/t/1061/rating.png','0','float')?></div><?endif?>
<?if($CATEGORY_NAME$)?><span class="e-category"><span class="ed-title">Category:</span> <span class="ed-value"><a href="$CATEGORY_URL$">$CATEGORY_NAME$</a></span></span><span class="ed-sep"> | </span><?endif?>
<span class="e-reads"><span class="ed-title">Views:</span> <span class="ed-value">$READS$</span></span><span class="ed-sep"> | </span>
<?if($USERNAME$)?><span class="e-author"><span class="ed-title">Added by:</span> <span class="ed-value" ><a href="$PROFILE_URL$">$USERNAME$</a></span></span><span class="ed-sep"> | </span><?endif?>
<span class="e-date"><span class="ed-title">Date:</span> <span class="ed-value" title="$TIME$">$DATE$</span></span>
<?if($COMMENTS_URL$)?><span class="ed-sep"> | </span><a class="e-comments" href="$COMMENTS_URL$">Comments ($COMMENTS_NUM$)</a><?endif?>
</div></td></tr></table><br />
<?endif?>

Added (2014-02-28, 9:11 AM)
---------------------------------------------
Never mind, informer does better jobs then this, i did not like informer before because it only showed title and date...etc, but with customization of code informer can display entry like entries archive...hence this method is useless

P.S. Informer is quite amazing

Post edited by NormalX - Thursday, 2014-02-27, 5:48 PM
uCoz Community » uCoz Modules » Site News & Blogs » View entry of specific category (w/o informer) (View entries of specific category on page without informer)
  • Page 1 of 1
  • 1
Search: