Codeigniter4 breadcrumbs template issue - templates

Breadcrumbs are not showing on pages
placed bootstrap breadcrumbs in home page but they all show on homepage and don't show on pages

Related

How to set custom/editable site name and discription Django CMS

How to set a custom/editable sitename and site discription in Django CMS.
The sitename and discription should be editable via Django CMS!
Check the image
I'm not entirely sure what you mean, but if I understand you correctly, you want to
put a placeholder in your template and
add a text plugin to that via the structure view.
<!-- your template, e.g. base.html -->
{% placeholder "title" %}
Then, in your structure view (button at the top right in your screenshot) you should see the placeholder and be able to add a text plugin with the title there.

Load django template dynamically

I've 2 section in my screen. Left section is for showing tabs and right is for displaying that tab template(as shown in screenshot). I'm not able to understand how to load different templates when I click these tabs
For example, when I click change password, I should be able to load change_password.html template
This is by far I've tried with code.
<div class="nav">
<ul>
<li class="active"></i><span class="hidden-xs hidden-sm">Home</span></li>
<li></i><span class="hidden-xs hidden-sm">Change Password</span></li>
<li>Bookings</span></li>
<li></i><span class="hidden-xs hidden-sm">Settings</span></li>
</ul>
</div>
I've tried to use with but no luck.
I've just started with django, so if anything is missed let me know. Thanks for your help!
Screenshot
I think what you're attempting is not possible. If you don't want a page reload upon clicking on a tab, you need to use Javascript to dynamically show/hide elements. If page reload is acceptable, you can create different views for each tab, each view rendering a different html file.
You can use the Django include tag to render another template with the current context. E.g. {% include "foo/bar.html" %} (see documentation here). But this will not solve your problem of displaying different content upon clicking on a tab.

SilverStripe 3 and breadcrumbs

Like the subject in this question:
Silverstripe Menu, Submenu, and Breadcrumbs
I would like to change the normal breadcrumbs into something else. Normally, the Simple theme puts breadcrumbs in the side panel. I want to change that method and create a Wordpress style set of breadcrumbs on the subject line.
There is a pretty nice set of breadcrumbs in the footer. That may be somewhat redundant but users are used to seeing the Wordpress style so that is the task.
It is clear from the docs how to change the separator character but it is not so clear how to change the page template to have the breadcrumbs in the page content and not a separate set in the sidebar.
Is there a simple way to do this in the Page.ss template?
Example:
MainMenuHome menu1 menu2
menu3
home >> menu1 >> menu2 >> menu3
Page subject menu3
Page Content
Footer
Sitename -> home / menu1 / menu2
Breadcrumbs are called into the template with the $Breadcrumbs variable (see SiteTree.php).
To change the look and feel of the breadcrumbs, you can override the BreadcrumbsTemplate.ss file in your theme.

laravel blade template engine content displayed outside end html tag

I am very new to laravel frame work, I am using laravel 4.2, now i have a problem with my blade template engine.
In my laravel admin panel After user login one dashboard page will display. This page is working fine.This page consists of master.header.php (which is my header) and dashboard page which is my left menu.
Blade code as follows
<pre>
below is my dashboard page code
#extends('includes.header')
#section('head')
#parent
<title>DashBoard</title>
#stop
#section('content')
LEFT MENU COMES HERE
#stop
</pre>
<pre>Now in my left menu different links are there.
So i want to inlcude header.blade.php and dashboard.blade.php in each link page.
Left menu page code as follows
<pre>
page name is : Employee.blade.php
#extends('usercp.dashboard')
#section('head')
#stop
#section('content')
hi this is my one of left menu section
</pre>
**OUT PUT**
<pre>
But when i click on the left menu link the content is displaying (hi this is my one of left menu section) at the header.
When i see the source of Employee.blade.php the left menu is out side </html> tag.
Not in body tag.
Can any one please help me in this regard.
</pre>
A few thoughts on your code:
In your left menu page the #section('content') is not closed, add a
#stop
The #extends command has to be the first line in your blade
template, with no html/whitespaces before it.
If you want to include another blade template (e.g. your header), use
#include('partials.header'). By extending another template you can
override the sections of your parent template, which is not
what you want for your header, I'd guess.

How to share a plugin (the content in a sidebar widget) in several templates in Django-CMS?

I want to add a common sidebar for all my templates on my site. Let's say, I want a picture and some text, that the final user could modify whenever she feels like without having to mess with my base.html template (the base class of all my templates).
To be clear, I know that I can put plugin place holders with the template tag:
{% placeholder sidebar %}
My problem is that if I have five 5 templates and the content of the sidebar is the same for all of them, the user have to go through all the pages and change them one by one.
On the other hand, it cannot be static because I want the user to be able to modify the content through the admin.
Specifically, I am trying to do this with the cmsplugin-contact which saves me the troubles of configuring forms and emails.
You can create a special page that isn't published and add a "sidebar" placeholder to the template. You then use the {% show_placeholder %} template tag to render that sidebar placeholder in the base template that each of your 5 other pages are using