I want to customize the default block of drupal 6 such that i have my own template for different blocks ..How can I achieve that ?
Steps to customize block.tpl.php
Copy block.tpl.php file from your current enabled theme.
Paste it.
Name it like : block-{machine readable name of your block(or
block-id)}.tpl.php
Note: "Do not use Curly brackets {}. It just for separation"
go to admin part of your site and flush all cache.
That's it. go to the place where you decide to display block and made changes in your customize block-{your block name}.tpl.php file.
1) goto the theme folder
2) copy the content of block.tpl.php to a new file block-div-id.tpl.php, where block-div-id is the div id of the block which you want to customize.
3) Now this template will be used to render that block.
Related
I have a page set up in this format
original reset image›
I looked at forums and it said i should change the inner layout page to __layout#reset.svelte. However when i do that, I get another error.
reset image using #reset instead of .reset
Does anyone know how i can put in a reset __layout inside of a folder and get it to override the parent layout?
Your error is because __layout#reset.svelte would be looking for a __layout-reset.svelte file in it's current directory, or any parent directory directory, to be a sub-layout for. You don't have a __layout-reset.svelte file.
As Thomas Hennes mentioned in the other thread. If you wanted to have it act like the reset, you'd need to create a __layout-reset.svelte file in the current folder or (more useful for the entire app, in the root folder) and have it be a blank <slot />. From there, you can do __layout#reset.svelte to which will allow you to make a completely new layout.
I think that you can solve this problem by fallowing this steps :
Create "__layout-choseNameYouWant.svelte" at the same level as "__layout.svelte"
Create "guides#theSameNameYouGaveForLayoutFile.svelte" at the same level as
about.svelte
Layouts can themselves choose to inherit from named layouts
create "__layout-root.svelte" at the same level as index.svelte and about.svelte with the following code
<slot/>
create "__layout#root.svelte" in guides folder with the following
<slot></slot>
I am using Magento 2.2.4. I need to add a block for product detail outside from the main 'Details', 'Review' tabs. I need this block to be separated after the main description of the product. How can I do this? I have started doing this with a custom theme but no idea how to do this.
Enable Path and block hint from magento admin->configuration->developer->debug
then you can see which block is rendering the product review
then you can move the block by
<move element="Your_block_name" destination="where_to_move" />
dont edit core files ,copy files from vendor->magento->magento catalog to
app\design\frontend\your_namespace\your_theme\Magento_Catalog
then do the changes in respective files,
after change
flush,clean cache, reindex and deploy static content
I know you can use layout filters for normal pages with urls, but upon errors the view changes while keeping the url the same, so I can't utilize a new layout based on the path. Any help would be appreciated. Thank you!
Off the top of my head:
If you look in Core > Shapes > Views, you will see two files - one called ErrorPage.cshtml and one called NotFound.cshtml. Simply copy these files and paste them into your theme's view folder.
I have not tested this method with these particular pages, but I did do something similar with the LogOn widget.
Something to bear in mind is that the contents of these files will be rendered in the Content zone of your current theme.
I'm new to ModX, but I have created a Template Variable (TV) for an Image ( image-1 ) .
Then I set a default value, and assign the TV to my Home_Template, click save.
Create some simple html in that template:
<li>[*image-1*]</li>
As expected, the template variable is available on this screen. So I select the image I want to display, and save. It appears in the preview for this template screen, but not on the actual website.
Any ideas?
check your caching settings ~ probably best to turn off caching completely during development.
also try calling your snippets & variables as 'uncached' ex:
[!*image*]
this looks like evolution code, best to switch to revolution if at all possible.
-sean
Is there a way to change the default LayoutRoot type in Expression Blend 3? Currently, I'm prototyping in SketchFlow, and I prefer Canvas over the Grid, and it's annoying to change it for every new screen.
Here is answer that will work, but you will need to change the templates:
Back up the contents of the template directory which resides here:
%ProgramFiles%\Microsoft Expression\Blend 3\Templates\
Find the templates being used in:
%ProgramFiles%\Microsoft Expression\Blend 3\Templates\(CSharp|VisualBasic)\
In that directory there will be 4 relevant templates:
SketchFlowCompScreen,
SketchFlowCompScreenSL,
SketchFlowNavScreen,
SketchFlowNavScreenSL
If you edit the xaml files within these, whenever you create a new screen in SketchFlow the screens will use your changes.