Loading a Joomla component instead of article for the front page - templates

I want to load a Joomla component for the front page and not an article.
How would I do that?
Thanks!

At first I wasn't too sure what you needed, then saw your comment.
If you want to load a component on the homepage, then create a new menu item, linking to the component, then set that menu item to "default".
Hope this helps

inside your theme folder you have to create HTML folder inside of this folder create component(like this com_component) folder here you place default.php file

Related

Sitecore Settings Item and Datasource

I have 2 websites each website contains settings item that contains logo and path for navigation folder for each website and navigation folder lives in global folder for each website :
Website1
Settings (Field map to navigation folder for current website1)
Global
Navigation Folder
Website2
Settings (Field map to navigation folder for current website2)
Global
Navigation Folder
Question 1 : when i open page editor and update any navigation link title and click publish from page editor (subitem and related items options are checked) nothing published on the front end website, so i have to go to the current settings item from content editor and publish it. I am sure this happens because there is no relation between current page and the the settings item. is there any way that i can make setting item published on page editor level ?
Question 2 : I want to make data source path field more dynamic, i have two websites, both with the same structure tree but different contents, lets say i'm reading navigation folder from datasource not settings item, so if i want to add new item under navigation folder from page editor it should display to me the navigation folder for current website, so the author can easily add navigation item under navigation folder for current website. how can i achieve this ?
Answer 1.
I think you'll need to select "Edit Related Item" and then publish that. Personally, I prefer things that don't change per-page to be edited from the content editor because it's more of a configuration thing. But that's just personal preference.
Answer 2.
I've used a martketplace module called "Sublayout Queryable Datasource".
It allows you to uses queries in your datasource locations, which means it can be relative to the current item. In your case it might look something like this:
query:ancestor-or-self::*[##templatename = 'Site Root']/Navigation Folder

Sitecore: Create component and insert into placeholder on page creation

We have developed a Sitecore site for a client who will primarily be using Page Editor. We've built page type layouts and then componentized everything else, including sub-layouts of content. This allows them the most flexibility when building pages.
So, an author goes to a page selects the main content area (Placeholder) of the page and inserts basic building block components that we've created. These include Rich Text box, page promos, etc. they can use these to build pretty rich pages with lengthy content.
All page components have the same Datasource Location, which is a "Page Components" folder that's setup as an item bucket.
This is all working well so far.
Now, I'm trying to make it so when a page is created a specific component is created, inserted into to our "Page Components" bucket and placed in a specific placeholder on the page.
I've been trying to build a Branch Template to accomplish this, but I don't see how to specify that the new component should be stored in our bucket location, instead of directly underneath the Page item. Also, how to make the component show up in the placeholder that I want on the page.
Is this possible? Thanks in advance for you help!
You will want to use a command template for this, since you are desiring to programmatically bypass Sitecore's standard layout configurations and branch template creation.
On your page template standard values, you will want to add the sublayout to the presentation details so you can hook the datasource in programmatically after creation.
The fundamental flow in the command will be as follows:
Create the desired page item
Create the desired component datasource in the bucket location
Search the layout definition of the created page item to find the appropriate sublayout to bind to.
Alter the datasource on the sublayout to bind to the datasource you created.
As #jammykam mentioned, there is a recent blog post now available.

problems in virtumart cart page and product description page

I am using Virtuemart 2 and Joomla 2.5 . i have assigned slideshow module in home page, but slide show module is displayed in Cart Page too. I'm much confused and I have no idea to solve it.
Like Shairya said, modules depend on the item ID to determine if they need to display or not. If a page in Joomla does not have a corresponding menu item, then it will inherit the item ID from the page that linked to it. You can do a couple of things to fix your issue. First, you can make a new menu and create a menu item for the VM cart. You don't have to put the menu in a module, it does not need to display for it to work.
You can also install Advanced Module Manager and use the Display on Home Page filter for the slideshow. AMM will not display modules on a page that inherits the home page item ID if you use this filter.

sharepoint 2013 custom site template not showing up on subsite

I have a sharepoint 2013 subsite called 'projects' where all its projects are subsites that were created by a site template.
I wanted to make changes to the template so I created a new 'project' subsite using the template, made the changes and saved that subsite as a new site template.
Now, when I'm trying to create new project subsites I only see the old site template but can't see the new one.
I've checked the solution gallery and they are both appearing there in active state.
Any I ideas what went wrong here?
Thanks.
I found the solution: if I want to allow the use of site tamplates in subsites I need to enter their site settings and into 'Page layouts and site templates' and add the requested site template to the allowed list of site templates.
I can't believe the option was in front of me on the screen and I didn't see it...
You have to activate the Publishing feature on the root and on the affected site.
The Option for that setting is not there anymore. Don't know since when but I just had the same issue not being able to use a custom template for a new Site Collection.
-Template is present in solutions gallery
-Custom tab is not being displayed when I want to select a template for the newly created site
-In the site settings of the newly created site there is no Option "Page layouts and site templates" in the looks & feel section

how to create pop up in articles in admin joomla2.5

I created an article in admin and want to show a pop-up with click event. I tried the following things:
Using script tag.But it did not work. And showed value to front side.
Used module fancybox and module simple pop-up. But they are showing error. I think because the core jquery file is loaded after the fancybox js file. But I did not know any way to change order of js files in head .
Could any body help me? I am new to joomla . Thanks in advance.
I found the solution. I added fancybox js in templates js and fancybox css in templates. Then $(".modalbox").fancybox();. Then adding div in articles admin.