BodyCssClass on initial content

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
11/9/2012 10:38:36 AM
Gravatar
Total Posts 40

Re: BodyCssClass on initial content

Hi Joe,

Yes i am working with the source version. I just updated the code and now am getting:

\Blog\Controls\PostList.ascx(63): error CS0103: The name 'UseProfileLink' does not exist in the current context

when i access a page with the blog installed.

Best regards,

João

11/9/2012 11:11:38 AM
Gravatar
Total Posts 18439

Re: BodyCssClass on initial content

Did you rebuild the solution and visit the setup page after updating to the latest code?

11/9/2012 12:44:12 PM
Gravatar
Total Posts 40

Re: BodyCssClass on initial content

Thanks Joe. You are the man ;)

Good news: I double checked and somehow i did not update the setup folder. So now i can see posts again!!!

Bad news: my RSS remains empty until i edit/add a post :/

Any thoughts?

Best regards,
João

11/9/2012 12:54:44 PM
Gravatar
Total Posts 2253

Re: BodyCssClass on initial content

If you don't have any posts, it makes sense that the RSS feed is empty.

Thanks,
Joe D.

11/9/2012 12:54:56 PM
Gravatar
Total Posts 18439

Re: BodyCssClass on initial content

If the blog has posts the feed should have posts. I just tested it here creating a new site and it worked for me, I click the feed link and I see the post that was created during setup.

Best,

Joe

 

11/12/2012 11:38:37 AM
Gravatar
Total Posts 40

Re: BodyCssClass on initial content

Hi there,

This is what i am using to create the initial blog:

<?xml version="1.0" encoding="utf-8" ?>
<blog>

<moduleSetting settingKey="BlogEditorHeightSetting" settingValue="350" />
<moduleSetting settingKey="RelatedItemsToShow" settingValue="0" />
<moduleSetting settingKey="UseExcerptInFeedSetting" settingValue="true" />
<moduleSetting settingKey="BlogExcerptLengthSetting" settingValue="250" />
<moduleSetting settingKey="BlogExcerptSuffixSetting" settingValue="" />
<moduleSetting settingKey="BlogMoreLinkText" settingValue="" />
<moduleSetting settingKey="BlogEntriesToShowSetting" settingValue="10" />
<moduleSetting settingKey="BlogShowFeedLinksSetting" settingValue="false" />
<moduleSetting settingKey="BlogShowAddFeedLinksSetting" settingValue="false" />
<moduleSetting settingKey="AddFeedDiscoveryLink" settingValue="false" />
<moduleSetting settingKey="MaxFeedItems" settingValue="20" />
<moduleSetting settingKey="BlogRSSCacheTimeSetting" settingValue="120" />
<moduleSetting settingKey="RSSAddSignature" settingValue="false" />
<moduleSetting settingKey="RSSAddCommentsLink" settingValue="false" />
<moduleSetting settingKey="BlogShowStatisticsSetting" settingValue="false" />
<moduleSetting settingKey="ShowNextPreviousLinks" settingValue="false" />
<moduleSetting settingKey="BlogAllowComments" settingValue="false" />

<posts>

<post title="My first news!">
<description>
<![CDATA[
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eu orci at nulla aliquet laoreet. Donec vel tellus ut purus egestas placerat. Curabitur ac ante purus. Curabitur lectus elit, convallis sed aliquet at, rutrum eu tortor. Integer euismod interdum nisl vehicula tristique. Integer nec justo sit amet lorem consectetur auctor. Praesent magna ipsum, dapibus ut blandit at, mollis in libero. Fusce lorem sem, aliquam eu dapibus vulputate, egestas et libero. Nulla lacus eros, tristique non cursus ac, laoreet quis nisl. Nullam justo neque, commodo vel consequat et, blandit non nulla. Donec eu tincidunt eros. Aliquam in tortor non lacus cursus elementum.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eu orci at nulla aliquet laoreet. Donec vel tellus ut purus egestas placerat. Curabitur ac ante purus. Curabitur lectus elit, convallis sed aliquet at, rutrum eu tortor. Integer euismod interdum nisl vehicula tristique. Integer nec justo sit amet lorem consectetur auctor. Praesent magna ipsum, dapibus ut blandit at, mollis in libero. Fusce lorem sem, aliquam eu dapibus vulputate, egestas et libero. Nulla lacus eros, tristique non cursus ac, laoreet quis nisl. Nullam justo neque, commodo vel consequat et, blandit non nulla. Donec eu tincidunt eros. Aliquam in tortor non lacus cursus elementum.
</p>
]]>
</description>
<excerpt>
<![CDATA[
<p><img alt="" src="/Data/Sites/1/imagens_noticias/c.jpg" height="215" width="324" /></p> <p class="texto">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eu orci at nulla aliquet laoreet. Donec vel tellus ut purus egestas placerat. Curabitur ac ante purus. Curabitur lectus elit, convallis sed aliquet at, rutrum eu tortor. Inte</p>
]]>
</excerpt>
</post>
</posts>
</blog>

And like i said, using the latest code and accessing the blog page, where i see the post, and then click the rss link (blog2rss.aspx) and see it empty. If i go back and edit that post, and just save it, i then go to the same rss link and it shows the item.

Best regards,
João

11/12/2012 11:44:06 AM
Gravatar
Total Posts 18439

Re: BodyCssClass on initial content

If you are using the latest code the feed url should not be "blog2rss.aspx", it should be in the format /Blog/RSS.aspx?p=x~y~z

11/12/2012 12:45:11 PM
Gravatar
Total Posts 40

Re: BodyCssClass on initial content

Thanks Joe.

Very helpfull as usual ;)

Just one observation: while trying to reinstalls several times (trying different content, experimenting, etc), i always have to delete my gallery files from data/sites/1/media/GalleryImages/... or i get an error while installing the initial content saying that the images i am trying to copy using the imagegallery content installer already exist. Perhaps they should just be either deleted or ignored.

Thank you again for your time.
Best regards,
João

11/22/2012 9:07:50 AM
Gravatar
Total Posts 40

Re: BodyCssClass on initial content

Sugested fix for the content installer already exists:

File: IOHelper.cs in mojoPortal.Web.Framework.IOHelper

Line 293:

File.Copy(file, dest);

Replace with:

File.Copy(file, dest, true); //overwrite existent files

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