I am new to the K2 component in Joomla, and am having a problem with the category layout grid.
I am using the K2 Content Module to pull items from a specific category. The category layout grid settings call for three columns for the leading, primary and secondary sections. Yet, the display remains in one column.
In fact, the module does not seem to respond to changes in the category layout settings at all, as images remain the same size regardless of setting.
Here are screenshots of both the category and the module page:
I have watched several videos on the issue and searched this site, and I can't figure out what it is that I am doing wrong.
Thanks for reading!
In case caching is enabled on website Clear the cache and see. Also check the menu item created for displaying the category.
The problem is that you don't know what you are actually setting.
Category settings (number of leading, primary... articles and their layout etc., see your first screenshot) do not apply to the K2 Content Module layout at all. That's correct.
Why? Category settings apply only to pages created via Joomla Admin -> Menus. You have to create a menu of item type "K2 Category" and that will create a page where your category settings will be applied. No other page will be affected by your category settings except this one.
K2 Content Module layout can be changed only via CSS and its template that can be found in /modules/mod_k2_content/tmpl/Default/default.php on your server. In the settings of the module itself, there is no layout settings as you can see in your second screenshot.
If you want to modify the K2 Content Module layout, follow these steps:
Make sure you'll override the module's template first. Just copy the
whole "Default" folder including its default.php file into
/templates/your_template/html/mod_k2_content/ and you'll be ready
to go.
Optional step for multiple module templates and layouts - You can rename the "Default" folder name to something different as "news_template". Now, in the module settings, see the "Select sub-template option" - you can choose your newly created one.
In the default.php file, change the HTML as your layout requires.
Change or write your own CSS for the module. You can do it either via k2.css file or your custom template stylesheet.
There is no "click-way" to choose the layout of the K2 Content Module, sorry - this is the only way.
// Update
I didn't notice that this is so old question but it hasn't been answered properly - so finally, this is the answer. The problem is still current, K2 is still widely used and this applies for all Joomla versions from 1.5 to 3.x
Related
In Sitecore I have created base Template & Renderings for "Header, Top Menu, Logo, Search ,Login Button…etc that comes in Header across all Pages of the Site."
Also the same template & Rendering is using in other website so we can't set value in Standard field.
Now the problem is “suppose we have 100 pages in a Site then each page we have to go and add/update rendering & data source.
Is there any way that a “Header rendering” contains child rendering and by placing “Header rendering” render all its child renderings.
Header Composite Component ===>
Logo Component
Top Navigation Component
Search Component
There is a composite component module on the Sitecore Marketplace :https://marketplace.sitecore.net/Modules/C/Composite_components.aspx?sc_lang=en
This fill's your requirements exactly.
It works by creating a "Composite Component" item, then you add your renderings for your header to that component. E.g. Logo, Navigation etc...
Then in the standard values of your page templates, you add a new Composite Component rendering and set the datasource to the component item you created.
The module will then inject the renderings from the component item presentation into your current item. So you only have to update a single place to update all pages etc...
I have this running in a few production sites and it works well. It even supports the Experience Editor.
I don't think there's a solution out of the box. SxA solves this with Partial and Page Designs at site level. Just wrote a blog about it:
http://reinoudvandalen.nl/blog/sitecore-experience-accelerator-partial-designs-and-page-designs/
I also made something that might help you: Partial Layout Presets
http://reinoudvandalen.nl/blog/sitecore-partial-layout-presets/
It even allows you to store presets per site, but keep in mind that it injects composed layouts. If you modify the preset then it does not get applied to the pages where it was injected (though you might be able to pull something of with a shared datasource per site).
Lastly the obvious solution would be to create a page template per site so you'll be able to have standard values per site.
You may want to take a look at using Placeholder Fallback.
This will allow you to add components and renderings to a top level page and then the child pages would "fallback" to using the renderings inserted into the placeholder of the top level page in the item hierarchy. The editors can also insert page specific renderings on each child page if required.
If you do not want to custom code and only out of the box features then you could use Devices. You can find more information in the documentation about Set up a device layout. Once the device is created you can specify a different default device per site:
Now when you open the Presentation Details on the __Standard Values of your templates you can specify a different Layout or Renderings per device, i.e. different ones for AltSiteDevice
Do I really have to set Placeholder Settings for rendering items in Presentation Detail??
I have many placeholder settings (without adding into Presentation Detail) and I can see empty placeholders areas (gray-box) without any problem. Then, I can choose assigned rendering items from the selected empty placeholder.
However, whenever I update files in "/App_Config" or "/bin" folder, all empty placeholder areas are disappeared (No gray-box) if the placeholder setting was not added into Presentation Detail. So, in Content Editor, I go to placeholder setting items which have the issue, then edit and save again and refresh the xEditor page. Now, the saved Placeholder Setting item appears.
What is the problem??? When App Pool recycles, is there something removing placeholder thing?? I have no idea...
I'm using Sitecore 8.0 and dynamic binding like #Html.Sitecore().Placeholder("Placeholder Key Name")
I have a Opencart 2.0.1.1 installed on my server with a few modules installed but I cant seem to assign them to the category layout.
for an example, I have a banner and I have assigned it to the category layout but it doesnt show. But when I assign it to any information page or home page it shows.
none of the a modules work for the category layout. There are no errors in the error log either
Can someone let me know what might causing this problem and how can I fix it?
I have the same problem with Version 2.3.0.2. Maybe you already solved it; but in case anyone else needs a solution I found a workaround: Create a new Categories Layout to which you assign your modules. Next, assign your new layout to each category by overriding the standard layout of each of your categories with the one you just created.
In case you need some directions, here's how to do this:
In the admin section go to Design > Layouts. Create a new layout for your category pages by clicking on the plus sign in the rop right of the screen (it says 'Add New' when you hover over it). The new screen will show a fresh layout; give it a unique name in the field 'Layout name'. Now click on the plus sign below the line that says 'Store' and 'Route'. This creates two empty fields in which you can fill in your store and route. Select the name for your store (mine is simply 'default') and in the route field enter 'product/category' (without the quote marks). Now assign the modules of your choice in this new layout. When you are done save the layout by hitting the save button in the top of the screen.The next step is that you assign your new categories layout to all your existing categories. Go to Catalog > Categories and open the first category on your list by hitting it's edit button. In the edit screen, go to the tab 'Design' and select your newly created layout in the dropdown list under 'Layout Override' . Hit the Save button and edit the next Category in the same manner. Go through the entire list and you are done. …That's it :)
I'm running Sitecore 7.2 with Web Forms For Marketers 2.4.
I have a placeholder settings main. That placeholder has the WFFM form control listed under "allowed controls". The "restricting placeholders" app also lists the main placeholder as the only selected placeholder.
I have a layout standard that points at a .cshtml file Standard.cshtml.
I have a template standard page. On the __Standard values of that template I've defined a presentation under the "default" device: layout is standard, and the main placeholder is listed under "placeholder settings".
My understanding is that I should be able to "insert form" onto either the __Standard values or on to content item instances of the standard page template. But every time I try either of those I get "there are no allowed placeholders in order to insert a new form". What do I need to do to get WFFM to let me add a form to my items?
WFFM doesn't work with Sitecore MVC. Sad panda.
https://kb.sitecore.net/articles/522918
There are a couple of workarounds floating around (e.g. http://www.chrisvandesteeg.nl/2014/02/11/usercontrol-renderings-in-a-sitecore-mvc-website-wffm-for-mvc/), but I don't think they're supported.
It sounds like you have everything setup correctly in order to insert a form into the main placeholder (possible security issues, notwithstanding). I believe the issue is the fact that the WFFM module is strictly Web Forms only at the moment and does not work with MVC layouts and renderings. Because your layout is a .cshtml file, Sitecore will trigger the MVC pipeline.
Apparently there is an update in the works that will support MVC and possibly support for a wizard / multi-stepped feature.
In the meantime, I have had to work around the issue by creating separate ASPX layouts / templates for form landing pages like the one below. The downside here is that you have to manage separate code paths for both MVC and Web Forms.
https://www.montereybayaquarium.org/support-us/membership/become-a-member-now
I purchased a template / theme from RocketTheme, but I can't figure out how to add content at a specific position.
The templates have "module positions" that collapse. I'd like to add some content at one of the module positions.
If I add articles, they seem to go into "mainbody". But I'd like to have content in other areas of the template.
How do I take some text, images, or other content, and get them to display in these other positions (i.e., TOP-A, or FEATURE-A, etc)?
I've tried this
Go to Extensions->Module Manager
Select "New", Select "Sections"
Under "Details", I select Position->Top-A
I give it a title.
Nothing seems to happen. I don't see anything new exposed in the admin UI, and I don't see a way to get any content into this newly defined section. What am I not understanding?
go to JED and look up html in module or content in module or content in component there are a bunch of them. http://extensions.joomla.org/search?q=module+content&start=20
Essentially
you create and save an article. Make sure it is saved to a section or category on your menu
open the module one of the paramaters will ask for the article id...decide which position and which pages you want it on and then publish.
You can also get modules that will take some or all of your articles in a category and then show them either as a slidedhow or one randomly when someone visits the page