links to another page
-
MonkhouseHosting
- Regular
- Posts: 9
- Joined: Fri Oct 23, 2009 7:13 pm
links to another page
I have setup Serendipity on an internal server for my company. I want to like an RSS feed on the main page of our intranet site. I would normally use google reader to make that page but this is an internal site so thats not an option does anyone have another idea?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: links to another page
Hi!
There is a serendipity "Aggregator" plugin available through spartacus, it can fetch RSS feeds and displays them inside your blog as if they were entries, do you mean that?
Regards,
Garvin
There is a serendipity "Aggregator" plugin available through spartacus, it can fetch RSS feeds and displays them inside your blog as if they were entries, do you mean that?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
MonkhouseHosting
- Regular
- Posts: 9
- Joined: Fri Oct 23, 2009 7:13 pm
Re: links to another page
I want to post the entries on my home page. like an RSS feed but I can't use an outside source like Google which is the problem.
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: links to another page
Do you want to display serendipity entries on a site that is not serendipity? If so, see the last section labeled "Showing entries in foreign webpages" here: http://www.s9y.org/78.html
=Don=
-
MonkhouseHosting
- Regular
- Posts: 9
- Joined: Fri Oct 23, 2009 7:13 pm
Re: links to another page
That is perfect thanks, for the help I just have one question I want to pull from one category and its not working. this is my code:
That still brings up other categories.
Code: Select all
// 4: Get the latest entries
$entries = serendipity_fetchEntries(null, true,2,$serendipity['GET']['Marketing']);-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: links to another page
Hi!
To fetch only entries frmo a specific category you need to set $serendipity['GET']['category'] = XXX BEFORE the serendipity_fetchEntries call.
If you want to fetch two entries from category #2, you use:
Regards,
Garvin
To fetch only entries frmo a specific category you need to set $serendipity['GET']['category'] = XXX BEFORE the serendipity_fetchEntries call.
If you want to fetch two entries from category #2, you use:
Code: Select all
$serendipity['GET']['category'] = 2;
$entries = serendipity_fetchEntries(null, true, 2);
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
MonkhouseHosting
- Regular
- Posts: 9
- Joined: Fri Oct 23, 2009 7:13 pm
Re: links to another page
Is there anyway to have like a certain amount characters of an article and then have a read more button to go straight to the article?
Is that in the template?
Is that in the template?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: links to another page
Hi!
Yes, you can do that in your entries.tpl at the place where you emit $entry.body, you use the smarty "truncate" option ({$entry.body|@truncate:200:'...'}) and then place your {$entry.link} to link to the full version.
HOWEVER you should not do that. This is why serendipity offers you a "body" and "extended body" input field for your blog article. The "body" is always the teaser, and "extended" is already what is additionally displayed on the detail entry page. This splitting is implemented into almost every serendipity template, and you should make use of it. Plus it also splits entry based on editor's input and not randomly with a word length that might destroy an entry's introduction.
Regards,
Garvin
Yes, you can do that in your entries.tpl at the place where you emit $entry.body, you use the smarty "truncate" option ({$entry.body|@truncate:200:'...'}) and then place your {$entry.link} to link to the full version.
HOWEVER you should not do that. This is why serendipity offers you a "body" and "extended body" input field for your blog article. The "body" is always the teaser, and "extended" is already what is additionally displayed on the detail entry page. This splitting is implemented into almost every serendipity template, and you should make use of it. Plus it also splits entry based on editor's input and not randomly with a word length that might destroy an entry's introduction.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
MonkhouseHosting
- Regular
- Posts: 9
- Joined: Fri Oct 23, 2009 7:13 pm
Re: links to another page
Thats perfect, you are alot of help, I just have one thing and then everything would be perfect. How could I get rid of the Posted by" " and that stuff there.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: links to another page
Hi!
For that, check your entries.tpl template search for "POSTED_BY" and then you should see what you can remove.
Regards,
Garvin
For that, check your entries.tpl template search for "POSTED_BY" and then you should see what you can remove.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
MonkhouseHosting
- Regular
- Posts: 9
- Joined: Fri Oct 23, 2009 7:13 pm
Re: links to another page
Is there any way to get entries from a certain category from a certain date? The thing is that we are using Serendipity as the back end put all the info is going to another web site because we do not want certain people seeing some of the categories. So if there is anyway to use a session variable to limit access that would be great.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: links to another page
Hi!
For PHP you can use the serendipity_fetchEntries() function, in smarty you could use {serendipity_fetchPrintEntries}. Both allow you to fetch entries from specific categories only.
Limiting access is done with serendipity authorgroups and the permission system of categories, though - and unrelated to your introductory question...?!?
Regards,
Garvin
For PHP you can use the serendipity_fetchEntries() function, in smarty you could use {serendipity_fetchPrintEntries}. Both allow you to fetch entries from specific categories only.
Limiting access is done with serendipity authorgroups and the permission system of categories, though - and unrelated to your introductory question...?!?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
MonkhouseHosting
- Regular
- Posts: 9
- Joined: Fri Oct 23, 2009 7:13 pm
Re: links to another page
How do you use serendipity_fetchEntries() is there documentation on that?
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: links to another page
More info here: http://www.s9y.org/78.htmlMonkhouseHosting wrote:How do you use serendipity_fetchEntries() is there documentation on that?
=Don=
-
MonkhouseHosting
- Regular
- Posts: 9
- Joined: Fri Oct 23, 2009 7:13 pm
Re: links to another page
I have done that with the foreign web sites but theres no date range.