shouldn't pagemenues be hidden in editpost and viewpost pages?

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.
8/14/2011 10:09:28 AM
Gravatar
Total Posts 192

shouldn't pagemenues be hidden in editpost and viewpost pages?

they are not in the version I have.

I had to add this.SuppressPageMenu(); to them manually to hide pagemenu.

why should they be in viewpost?

this is a request for change.

adding a subpage corrupts my viewpost page. see this page when pagemenu is not hidden:

http://eranews.ir/persian-post.aspx

8/14/2011 10:30:01 AM
Gravatar
Total Posts 18439

Re: shouldn't pagemenues be hidden in editpost and viewpost pages?

shouldn't pagemenues be hidden in editpost and viewpost pages?

No why should they? If you don't want pages below the blog page then don't create pages below the blog page or else if you want hidden pages below the blog page use a different skin on the bog page that doesn't have PageMenu

I don't know what you mean by "corrupts the page", possibly you will have some problems using Persian urls, there is nothing I can do about that.

8/15/2011 12:03:42 AM
Gravatar
Total Posts 192

Re: shouldn't pagemenues be hidden in editpost and viewpost pages?

well, if you had checked the home page; the blog module is not sitted on a just a blog page . (homepage is not visible to anonymous users for two or three days now until I finish the site)

there are many modules in the home page, some of them being blogs.

I expected that the user would see no pagemenu when just visiting the blog post. he should see pagemenu in the page that contains the blog module, but not in the blog post view page (why should he?)

anyways, the pagemenu ruined the blog post view because I had designed it to spread accross the whole page and no pagemenu was expected to be shown. I mean

this :

http://eranews.ir/Data/Sites/1/temp/1.jpg

against this:

http://eranews.ir/Data/Sites/1/temp/2.jpg

8/15/2011 7:01:53 AM
Gravatar
Total Posts 18439

Re: shouldn't pagemenues be hidden in editpost and viewpost pages?

I will accommodate you, if you get the latest code from the repository then you can add these to your user.config to suppress the PageMenu

<add key="Blog:BlogViewSuppressPageMenu" value="true" />
<add key="Blog:EditPostSuppressPageMenu" value="true" />

but I also want to say:

blogs will not work well if you try to put the same blog on multiple pages or if you move a blog from one page to another. This is because the friendly urls must pass in the correct pageid in the real url to enforce security

your usage seems unusual to me if you have more than one blog on a page.

also when you say "there are many modules on the home page", my advice is don't do that, just because you can use a bunch of modules on a single page does not mean you should. Each module is making several hits to the database so you should use good judgment about how you construct your content. Its ok to use a few but I would not get carried away with using lots of feature instances per page. Rather than putting multiple html features on a page consider that you can use a single instance and do layout within the content and you can make content templates with different layouts to make it easier.

8/15/2011 7:31:23 AM
Gravatar
Total Posts 192

Re: shouldn't pagemenues be hidden in editpost and viewpost pages?

thanks.

the blogs sit on the homepage and there is no plan to move them or reuse them.

but unfortunately I have 10 blog modules on the home page!

it's a news publishing website.

10/24/2011 10:37:30 AM
Gravatar
Total Posts 2253

Re: shouldn't pagemenues be hidden in editpost and viewpost pages?

Hi Joe,

It appears the BlogViewSuppressPageMenu option is enabled by default now? Seems to me that this should be disabled by default because most people are probably going to want the PageMenu to show up on the BlogView pages.

Thanks,
Joe D.

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