Hi Greg,
First of all sorry for not being clear about my problem, my head was all over the place yesterday so I hope this helps…
I have an template group called “inc” here all my includes for my site go. I have an include file called “news_entry” and the code is the following:
{exp:weblog:entries weblog="news" orderby="date" limit="10"}
{newstitle}
{newsurl}
{newscontent}
{/exp:weblog:entries}
Now on my index page I call this include like so: {embed="inc/news_entry" loc="index"}
and that works just fine. I also have a news page (just called news) where I archive the news I post, so the front page only shows 10 of the latest news stories and if people go to /news they see an archive of my old posts.
Now the issue I have is I need to offset the news stories when people are on the /news page as I don’t want them to see the same stories again as they just have from the front page. So this is what I had to do in order to get it to work the way I wanted:
news_entry
{if "{embed:loc}" == "index"}
{exp:weblog:entries weblog="news" orderby="date" limit="10"}
{newstitle}
{newsurl}
{newscontent}
{/exp:weblog:entries}
{/if}
{if "{embed:loc}" == "news"}
{exp:weblog:entries weblog="news" orderby="date" limit="10" offset="10"}
{newstitle}
{newsurl}
{newscontent}
{/exp:weblog:entries}
{/if}
As you can see I had to repeat the weblog entry tags again just to use the offset feature. Now if I need to make some changes in the future to my entry design I would have to do it twice.
So I was wondering if there was a better way of doing this? I am sorry for the mental question but I am still new to EE and am still playing around with it.
Please let me know if I made more sense….
Thanks again for the rapid help!
Best regards,
Tony