Expose Blog item ID on just one Page / tab?

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
1/16/2014 3:18:47 AM
Gravatar
Total Posts 66

Expose Blog item ID on just one Page / tab?

I want to move one of my large design magazines from the current CMS to MojoPortal. However, my news page is syndicated by Google News and they require a unique item ID on each news item, currently we expose the ArticleID in the news item URL's.

Is it possible in the MojoPortal Blog module to expose the PostID in the URL of each post and not anywhere else on the website (in other blob modules)?

Thanks in advance,

Allen

1/17/2014 9:38:01 AM
Gravatar
Total Posts 18439

Re: Expose Blog item ID on just one Page / tab?

For RSS Feeds usually the url is used as a unique identifier for a post since urls are unique per post. If you're using something other than the rss feed to get syndicated by google news I would need to see some documentation about what format they need.

post ids themselves are basically meaningless in most contexts other than within the database itself, I can't imagine why google would need it, it just needs something unique and the url is unique.

1/17/2014 9:48:07 AM
Gravatar
Total Posts 66

Re: Expose Blog item ID on just one Page / tab?

They don't pull via RSS only the news items on the news page. I'll dig up the Google News requirements. We went through this a long while back when we requested them to add two of my sites news to their syndication.


Allen

1/17/2014 9:50:28 AM
Gravatar
Total Posts 66

Re: Expose Blog item ID on just one Page / tab?

Here you go. Each one requires at leat three digits

 

https://support.google.com/news/publisher/answer/68323?hl=en

 

In order for your publication to be included in Google News, your articles' URLs should meet the following guidelines:

Be unique. Each of your pages that display an article's full text needs to have a unique URL. We can't include sites in Google News that display multiple articles under one URL, or that do not have links to pages dedicated solely to each article.

Be permanent. For example, we wouldn't be able to crawl the page www.yoursite.com/news1.html if it displayed a different story every day. In order to ensure that our links to articles function properly, each article on your news site needs to be associated with one unique URL, and that URL must be permanent (i.e., it can't be recycled).

Additionally, do not republish previously published articles under a new URL. For example, if you initially published your article under www.example.com/news1.html, don’t republish it under www.example.com/news2.html at a later date. If in the process of changing domains or CMS structure your URL pattern changes, please send us your pattern transformation rules and we may be able to assist.

Display a three-digit number. The URL for each article must contain a unique number consisting of at least three digits. For example, we can't crawl an article with this URL: http://www.google.com/news/article23.html. We can, however, crawl an article with this URL: http://www.google.com/news/article234.html. Keep in mind that if the only number in the article consists of an isolated four-digit number that starts with 199 or 200, we won't be able to crawl it. Please note that this rule is waived with News sitemaps.

1/17/2014 11:04:57 AM
Gravatar
Total Posts 18439

Re: Expose Blog item ID on just one Page / tab?

Hi Allen,

Their requirement seems rather strange to me requiring a number in the url but it is what it is. Post id could be used but since it needs at least 3 characters I guess numbers below 100 would have to have leading zeros like 001, 002 etc.

I'll log this in our project tracker and see what I can come up with.

Best,

Joe

1/17/2014 1:21:07 PM
Gravatar
Total Posts 66

Re: Expose Blog item ID on just one Page / tab?

Thanks Joe. Do let me know if you fit this in.i really need Google news syndication so I can migrate 2 more websites over.

Kindest Regards,

Allen

1/17/2014 1:52:27 PM
Gravatar
Total Posts 18439

Re: Expose Blog item ID on just one Page / tab?

Hi Allen,

I'm leaning towards implementing a google news site map for the blog since the article says the url requirement of a number is waived when using one. That way the urls don't have to change at all and no number is needed.

But to do it right I think it will need a new field in the blog table for include in news map so that posts can selectively be included, as well as per post fields that can populate the genres, keywords, and stock_tickers elements and probably also should support an image.

Then we may also need a couple of new instance settings for the publication name, language, and access elements.

Unfortunately we're too close to a new release to get all that done in time for the next release. I might be able to stubb out a minimal feed that pulls all posts within the last 2 days and populating the minimal required elements of the feed.

Of course another option is you could manually maintain an xml file until we can get to completing this and submit the url to that file as your news site map and later change to the built in feed url when it becomes available.

Best,

Joe

1/17/2014 1:57:25 PM
Gravatar
Total Posts 66

Re: Expose Blog item ID on just one Page / tab?

Thanks Joe,

I'll hold off migrating DesignerToday.com and Statesboro.biz till the new sitemap is included. i am about done with mannually doing things. LOL. I am sure you know what I mean.

Have a great weekend!

Allen

1/17/2014 2:07:41 PM
Gravatar
Total Posts 18439

Re: Expose Blog item ID on just one Page / tab?

Hi Allen,

Many thanks for the beers! Very appreciated.

If I can squeeze in the minimal news map for this release will that help you?

You could also just edit the suggested url and add a number when creating a blog post to get by for a short time without an automated news map.

Have a great weekend yourself!

Joe

1/17/2014 2:12:38 PM
Gravatar
Total Posts 66

Re: Expose Blog item ID on just one Page / tab?

No problem Joe. I can wait until you have it implemented fully. My developer is trying to get Poser World rolled over. Soon as that us done I will be looking at rolling the others over. We have about 2,600 articles to move and about 4,000 members to move over to the new MojoPortal website. Once I come up for air, I will let you know. ;-)

Kindest Regards,
Allen

You must sign in to post in the forums. This thread is closed to new posts.