How would I move from the default ASP.NET layout to another theme - model-view-controller

I just started to use MVC for a simple website. Very new to this.
I am trying to change from the default layout to a simple layout page with sidebar navigation with drop-down list capability. Something similar to one that is shown in the enter link description here
Could you please guide me through this? I have downloaded the HTML, CSS and js files.
I added them to the project and referred to them in the bundleconfig.cs. But still no success.
Thank you very much

Related

I wish to add a button on the admin dashboard in Joomla 3.5, where in code do I need to make changes?

This button would be 'share' and placed at the article editor just like we have buttons like 'save','edit' etc
I facing a problem understanding joomla code structure and which file I need to make changes so as to add this button. Should it be administrator/layout/editor/ ?
There is a free plugin that can help you share your contents in social network. have a look http://extensions.joomla.org/extensions/extension/social-web/social-comments/social-comments-and-sharing-for-joomla .
Also there are several other plugins that may suit your requirements then to hack the core files http://extensions.joomla.org/extensions/extension?searchall=share+button
if you want to develop your custom editor button then you can check this link
Add Custom Button to Joomla's Article Editor (TinyMCE)

Orchard About us Page in Solution Explorer

I am new to Orchard CMS. I have created an About-Us page from the admin Dashboard.
Now, I want to put javascript on About-Us page only. Kindly tell me where can I find the About-Us page in solution explorer of Visual Studio? Or is there any other way to achieve this?
PS: I am using Orchard 1.8.
Thanks
I do not think, i quite get it.
here is the view for the dashboard: \Orchard.Web\Core\Dashboard\Views\Admin\Index.cshtml
Adding javascript to any view is done by using Script.Include([PathToResource]) or Script.Require([NameOfResource]) and/or #using (Script.Foot()) { [InlineJavascript]}
If what you are asking is, How to add javascript to a page created with the Page Content Type then you need to add Parts to your ContentType.
A good start will be Vandelay.Industries 1.8 (the latest), but there are others.
Enjoy!

Articles not showing in joomla 2.5

I am trying to use joomla with the yoo catalyst theme. And i was trying to have an article on my page. But the problem is that article is not showing in my theme. But when i choose default theme it is showing the accurate results. Is there any setting that i am missing with this theme?
Please Help.
Think the answer if fairly simple. The link your provided:
http://www.2ademo.com/MedFit2.5/index.php?option=com_helloworld&view=helloworld
is to a dummy component, hence the "option=com_helloworld&view=helloworld" and not to an actual article. When I went on to the website, I clicked on the "Privacy Policy" link which directed me to the following page:
http://www.2ademo.com/MedFit2.5/index.php?option=com_content&view=article&id=56&Itemid=106
and the article is showing fine on here
#user1929236 This is not an actual problem, it was actually caused by template configuration.
Since you have set hidden content on homepage in the template config, the content in the url was also hidden (an url without itemid will use the same template profile with homepage).

Themes and editing pages in Sitefinity 4.4

When I edit content in the backend I would like to be able to see the page as like it is in sitefinity 3.7. Right now all I'm seeing are the contentplaceholders, I don't think this is will work for inexperienced users. Is this this possible to achieve? I've tried adding themes="theme" to the tag in the web config, but this applies it to the CMS elements as well.
Sitefinity version: 4.4
Thanks for your time!
Peter
To apply styles for particular elements only for the page editor (placeholders, widget headers etc.), put .sfPageContainer before every element. For example, if you want to change the color of the links in the page editor write .sfPageContainer a{color:blue} and this will apply only in the page editor, not in the whole system.

Making a different type of home page in Orchard

I've just started with the Orchard CMS and I can see that I can create a page and have different widgets on them, but I need the homepage to have a different layout.
I'd like to have some sort of different cshtml file for the homepage, but I can't seem to work out how to do it from the documentation. I also need to have four text areas on the home page that aren't on the main page.
Can someone who has done this point me in the right direction?
You should use designer tools module if you are using Orchard 1.1 +. Just search for Shapes in the admin and install the tools. Then you can create Alternates by reviewing the shapes in-browser.
In your case you should be able to create a view with the name: Content-url-homepage.cshtml
This may help you, it's a post I found about making your own themes and is a fairly simple example but covers what you are looking for:
http://www.nogginbox.co.uk/blog/theming-orchard
/Views/Content-11.cshtml
I wanted to display the content on my
homepage slightly differently than
other pages. My homepage has an ID of
11 so I was able to reference it with
a file called Content-11.cshtml. I
could also have created a template for
all blog post content using a file
called Content-BlogPost.cshtml had I
needed to do so.
You can try this to vary the homepage layout: http://weblogs.asp.net/bleroy/archive/2010/12/14/switching-the-layout-in-orchard-cms.aspx
Orchard 1.1 will also give you a homepage alternate out of the box.

Resources