CMS - úpravy

Místo pro dotazy a rady ohledně programovacích jazyků (C++, C#, PHP, ASP, Javascript, VBS..) a tvorby webových stránek

Moderátor: Mods_senior

jar_st
Level 2.5
Level 2.5
Příspěvky: 354
Registrován: září 09
Pohlaví: Muž
Stav:
Offline

CMS - úpravy

Příspěvekod jar_st » 22 led 2012 09:49

Ahoj,
seznamuji se s redakčním systémem CMS,nemůžu přijít na to,jak upravit (odstranit) odkazy ve spodní části stránky a jak prostě ten spodek zmenšit na výšku.
Díky za tipy.

http://img685.imageshack.us/img685/1506/cmsbottom.png

Reklama
guest
Pohlaví: Nespecifikováno

Re: CMS - úpravy

Příspěvekod guest » 22 led 2012 10:00

Obrázky se vkládají sem jako příloha, viz. Pravidla fóra.
Přílohy
cmsbottom.JPG

jar_st
Level 2.5
Level 2.5
Příspěvky: 354
Registrován: září 09
Pohlaví: Muž
Stav:
Offline

Re: CMS - úpravy

Příspěvekod jar_st » 23 led 2012 21:59

Nikdo nic?

Uživatelský avatar
CZechBoY
Master Level 9.5
Master Level 9.5
Příspěvky: 8813
Registrován: srpen 08
Bydliště: Brno
Pohlaví: Muž
Stav:
Offline
Kontakt:

Re: CMS - úpravy

Příspěvekod CZechBoY » 24 led 2012 08:30

asi budeš muset upravit šablonu, není to nic těžkého pro někoho kdo se v tom už někdy hrabal
pokud si s šablonami nikdy nedělal tak mi pošli šablonu a já ti ji opravím jak budeš chtít...
to dolní menu mám dát tedy úplně pryč?
PHP, Nette, MySQL, C#, TypeScript, Python
IntelliJ Idea, Docker, Opera browser, Linux Mint
iPhone XS
Raspberry PI 3 (KODI, Raspbian)
XBox One S, PS 4, nVidia GeForce NOW

jar_st
Level 2.5
Level 2.5
Příspěvky: 354
Registrován: září 09
Pohlaví: Muž
Stav:
Offline

Re: CMS - úpravy

Příspěvekod jar_st » 24 led 2012 20:24

Díky za ochotu.Klidně bych poslal,kdybych věděl co.Jsem zvyklej z html že každá stránka je samostatně,i úpravy se dělají samostatně.Tohle se skládá s jakýchsi modulů ? Jde editovat veškerej obsah přímo z administrace,nebo se upravují na hdd v PC jednotlivý soubory a pak se nakopírují na web ?
CMS vidím prvně,snažím se s tím seznámit.

--- Doplnění předchozího příspěvku (24 Led 2012 20:34) ---

Aha,takže se to nezobrazí když smažu tohle:
{* Start Footer. Edit the footer in the Global Content Block called "footer" *}
<div class="footback">
<div id="footer">
{* stylesheet "Navigation: FatFootMenu" *}
<div id="fooleft">
{menu loadprops=0}
</div>
<div id="footrt">
{global_content name='footer'}
</div>
<div class="clear"></div>
</div>
</div>
{* End Footer *}

Jak to upravím,resp. kde najdu zdroj těch odkazů?

Uživatelský avatar
CZechBoY
Master Level 9.5
Master Level 9.5
Příspěvky: 8813
Registrován: srpen 08
Bydliště: Brno
Pohlaví: Muž
Stav:
Offline
Kontakt:

Re: CMS - úpravy

Příspěvekod CZechBoY » 24 led 2012 21:08

zkus dát pryč ten řádek {menu loadprops=0}
PHP, Nette, MySQL, C#, TypeScript, Python
IntelliJ Idea, Docker, Opera browser, Linux Mint
iPhone XS
Raspberry PI 3 (KODI, Raspbian)
XBox One S, PS 4, nVidia GeForce NOW

jar_st
Level 2.5
Level 2.5
Příspěvky: 354
Registrován: září 09
Pohlaví: Muž
Stav:
Offline

Re: CMS - úpravy

Příspěvekod jar_st » 24 led 2012 21:15

Super! To je ono.Díky moc.
Ještě vmi to tam píše nějakou chybu -co s tím:
Přílohy
CMC-chyba.PNG
CMC-chyba.PNG (5.4 KiB) Zobrazeno 437 x

Uživatelský avatar
CZechBoY
Master Level 9.5
Master Level 9.5
Příspěvky: 8813
Registrován: srpen 08
Bydliště: Brno
Pohlaví: Muž
Stav:
Offline
Kontakt:

Re: CMS - úpravy

Příspěvekod CZechBoY » 25 led 2012 15:32

když už píšeš chybu a něco si předtím měnil navíc než jsem psal tak aspoň příště pošli nový zdroj tý šablony
pošli prosím ten nový kod celý šablony
PHP, Nette, MySQL, C#, TypeScript, Python
IntelliJ Idea, Docker, Opera browser, Linux Mint
iPhone XS
Raspberry PI 3 (KODI, Raspbian)
XBox One S, PS 4, nVidia GeForce NOW

jar_st
Level 2.5
Level 2.5
Příspěvky: 354
Registrován: září 09
Pohlaví: Muž
Stav:
Offline

Re: CMS - úpravy

Příspěvekod jar_st » 25 led 2012 18:21

Myslíš tohle ?

{process_pagedata}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
{* Change lang="en" to the language of your site *}

{* note: anything inside these are smarty comments, they will not show up in the page source *}

<head>
<title>{sitename} - {title}</title>
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}

{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}

{cms_stylesheet}
{* This is how all the stylesheets attached to this template are linked to it *}

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{* Relational links for interconnections between pages, good for accessibility and Search Engine Optimization *}

{* the literal below and the /literal at the end are needed whenever there are {"curly brackets"} as smarty will think it's something to process and will throw an error *}
{literal}
<script type="text/JavaScript">
<!--
//pass min and max - measured against window width
function P7_MinMaxW(a,b){
var nw="auto",w=document.documentElement.clientWidth;
if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
//-->
</script>
<!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
</style>
<![endif]-->
{/literal}
{* The min and max page width for Internet Explorer is set here. For other browsers it's in the stylesheet "Layout: Top menu + 2 columns" *}

</head>
<body>
<div id="pagewrapper">

{* start accessibility skip links, anything with the class of accessibility is hidden with CSS from visual browsers *}
<ul class="accessibility">
<li>{anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}</li>
<li>{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}</li>
</ul>
{* end accessibility skip links *}

<hr class="accessibility" />
{* Horizontal ruler that is hidden for visual browsers by CSS *
}
{* Start Header, with logo image that links to the default start page. Logo image is changed in the stylesheet "Layout: Top menu + 2 columns" *}
<div id="header">

{* this holds the name of the site on the right side *}
<h2 class="headright">{sitename}</h2>

{* this holds a link back to home page and the header left image/logo, text is hidden using CSS *}
<h1>{cms_selflink dir="start" text="$sitename"}</h1>
<hr class="accessibility" />
</div>
{* End Header *}

{* Start Navigation *}
<div id="menu_horiz">
{* stylesheet "Navigation: Simple - Horizontal" *}
<h2 class="accessibility">Navigation</h2>
{menu loadprops=0 template='simple_navigation.tpl' number_of_levels='1'}
<hr class="accessibility" />
</div>
{* End Navigation *}
{* Start Search, the input "Submit" is using an image, CSS: input.search-button *}
<div id="search">
{search}
</div>
{* End Search *}

{* Start Breadcrumbs *}
<div class="crbk">
{* holds the right image, we need 2 divs to be able to make this site fluid, if it was fixed width we could use one div, one image *}

<div class="breadcrumbs">
{breadcrumbs starttext='Právě se nacházíte:' root='Home' delimiter='&raquo;'}
<hr class="accessibility" />
</div>
</div>
{* End Breadcrumbs *}

{* Start Content (Navigation and Content columns) *}
<div id="content">

{* Start Sidebar, 2 divs one for top image one for bottom image *}
<div id="sidebar">
<div id="sidebara">

{* Start Sub Navigation, stylesheet "Navigation: Simple - Vertical" *}
<div id="menu_vert">
<h2 class="accessibility">Sub Navigation</h2>
{menu loadprops=0 template='simple_navigation.tpl' start_level='2' collapse='1'}
<hr class="accessibility" />
</div>
{* End Sub Navigation *}

{* Start News, style sheet "Module: News" *}
<div id="news">
<h2>News</h2>
{news number='3' detailpage='news'}
</div>
{* End News *}

{ nově přidáno* Start News, style sheet "Module: News" *}
<div id="news">
<h2>Novinky</h2>
{news number='3' detailpage='news'}
</div>
{* End News *}

</div>
</div>
{* End Sidebar *}

{* Start Content Area, the back1, back2, back3, hold the 3 outside images, main holds the 4th one, to make the box complete, if the template were fixed width not fluid we could use just 2 divs and 2 images, 1 top 1 bottom *}
<div class="back1">
<div class="back2">
<div class="back3">
<div id="main">
<div style="float: right;">{print showbutton=true script=true}</div>
<h2>{title}</h2>
{content}
<br />{* to insure space below content *}

{* Start relational links *}
{* note this is the right side, when you float: divs you need to have float: right; divs first *}
<div class="right49">
<p>{anchor anchor='main' text='^ Top'}</p>
</div>
<div class="left49">
<p> {cms_selflink dir="previous" label="Previous page: "}
{* The label parameter doesn't need to be there if you're using English, but is here to show how it's used if you don't want the English text "Previous page" *}

<br />
{cms_selflink dir="next"}
</p>
</div>
{* End relational links *}

<hr class="accessibility" />
<div class="clear"></div>
</div>
</div>
</div>
</div>
{* End Content Area *}

</div>
{* End Content *}


</div>
{* end pagewrapper *}

{* Start Footer. Edit the footer in the Global Content Block called "footer" *}
<div class="footback">
<div id="footer">
{* stylesheet "Navigation: FatFootMenu" *}
<div id="fooleft">

</div>
<div id="footrt">
{global_content name='footer'}
</div>
<div class="clear"></div>
</div>
</div>
{* End Footer *}
</body>
</html>

Uživatelský avatar
CZechBoY
Master Level 9.5
Master Level 9.5
Příspěvky: 8813
Registrován: srpen 08
Bydliště: Brno
Pohlaví: Muž
Stav:
Offline
Kontakt:

Re: CMS - úpravy

Příspěvekod CZechBoY » 25 led 2012 20:31

jo..
máš tam blbě označenej komentář v šabloně
jak jsem si vydedukoval tak komentář se uzavírá do {* komentář *} :)

Kód: Vybrat vše

{process_pagedata}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
{* Change lang="en" to the language of your site *}

{* note: anything inside these are smarty comments, they will not show up in the page source *}

 <head>
 <title>{sitename} - {title}</title>
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}

 {metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}

 {cms_stylesheet}
{* This is how all the stylesheets attached to this template are linked to it *}

 {cms_selflink dir="start" rellink=1}
 {cms_selflink dir="prev" rellink=1}
 {cms_selflink dir="next" rellink=1}
{* Relational links for interconnections between pages, good for accessibility and Search Engine Optimization *}

{* the literal below and the /literal at the end are needed whenever there are {"curly brackets"} as smarty will think it's something to process and will throw an error *}
 {literal}
<script type="text/JavaScript">
<!--
//pass min and max - measured against window width
function P7_MinMaxW(a,b){
var nw="auto",w=document.documentElement.clientWidth;
if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
//-->
</script>
 <!--[if lte IE 6]>
 <style type="text/css">
 #pagewrapper {width:expression(P7_MinMaxW(720,950));}
 #container {height: 1%;}
 </style>
 <![endif]-->
 {/literal}
{* The min and max page width for Internet Explorer is set here. For other browsers it's in the stylesheet "Layout: Top menu + 2 columns" *}

 </head>
 <body>
 <div id="pagewrapper">

{* start accessibility skip links, anything with the class of accessibility is hidden with CSS from visual browsers *}
 <ul class="accessibility">
 <li>{anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}</li>
 <li>{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}</li>
 </ul>
{* end accessibility skip links *}

 <hr class="accessibility" />
{* Horizontal ruler that is hidden for visual browsers by CSS *
}
{* Start Header, with logo image that links to the default start page. Logo image is changed in the stylesheet "Layout: Top menu + 2 columns" *}
 <div id="header">

{* this holds the name of the site on the right side *}
 <h2 class="headright">{sitename}</h2>

{* this holds a link back to home page and the header left image/logo, text is hidden using CSS *}
 <h1>{cms_selflink dir="start" text="$sitename"}</h1>
 <hr class="accessibility" />
 </div>
{* End Header *}

{* Start Navigation *}
 <div id="menu_horiz">
{* stylesheet "Navigation: Simple - Horizontal" *}
 <h2 class="accessibility">Navigation</h2>
 {menu loadprops=0 template='simple_navigation.tpl' number_of_levels='1'}
 <hr class="accessibility" />
 </div>
{* End Navigation *}
{* Start Search, the input "Submit" is using an image, CSS: input.search-button *}
 <div id="search">
 {search}
 </div>
{* End Search *}

{* Start Breadcrumbs *}
 <div class="crbk">
{* holds the right image, we need 2 divs to be able to make this site fluid, if it was fixed width we could use one div, one image *}

 <div class="breadcrumbs">
 {breadcrumbs starttext='Právě se nacházíte:' root='Home' delimiter='&raquo;'}
 <hr class="accessibility" />
 </div>
 </div>
{* End Breadcrumbs *}

{* Start Content (Navigation and Content columns) *}
 <div id="content">

{* Start Sidebar, 2 divs one for top image one for bottom image *}
 <div id="sidebar">
 <div id="sidebara">

{* Start Sub Navigation, stylesheet "Navigation: Simple - Vertical" *}
 <div id="menu_vert">
 <h2 class="accessibility">Sub Navigation</h2>
 {menu loadprops=0 template='simple_navigation.tpl' start_level='2' collapse='1'}
 <hr class="accessibility" />
 </div>
{* End Sub Navigation *}

{* Start News, style sheet "Module: News" *}
 <div id="news">
 <h2>News</h2>
 {news number='3' detailpage='news'}
 </div>
{* End News *}

{* nově přidáno Start News, style sheet "Module: News" *}
 <div id="news">
 <h2>Novinky</h2>
 {news number='3' detailpage='news'}
 </div>
{* End News *}

 </div>
 </div>
{* End Sidebar *}

{* Start Content Area, the back1, back2, back3, hold the 3 outside images, main holds the 4th one, to make the box complete, if the template were fixed width not fluid we could use just 2 divs and 2 images, 1 top 1 bottom *}
 <div class="back1">
 <div class="back2">
 <div class="back3">
 <div id="main">
 <div style="float: right;">{print showbutton=true script=true}</div>
 <h2>{title}</h2>
 {content}
 <br />{* to insure space below content *}

{* Start relational links *}
{* note this is the right side, when you float: divs you need to have float: right; divs first *}
 <div class="right49">
 <p>{anchor anchor='main' text='^ Top'}</p>
 </div>
 <div class="left49">
 <p> {cms_selflink dir="previous" label="Previous page: "}
{* The label parameter doesn't need to be there if you're using English, but is here to show how it's used if you don't want the English text "Previous page" *}

 <br />
 {cms_selflink dir="next"}
 </p>
 </div>
{* End relational links *}

 <hr class="accessibility" />
 <div class="clear"></div>
 </div>
 </div>
 </div>
 </div>
{* End Content Area *}

 </div>
{* End Content *}


 </div>
{* end pagewrapper *}

{* Start Footer. Edit the footer in the Global Content Block called "footer" *}
 <div class="footback">
 <div id="footer">
{* stylesheet "Navigation: FatFootMenu" *}
 <div id="fooleft">

 </div>
 <div id="footrt">
 {global_content name='footer'}
 </div>
 <div class="clear"></div>
 </div>
 </div>
{* End Footer *}
 </body>
</html>
PHP, Nette, MySQL, C#, TypeScript, Python
IntelliJ Idea, Docker, Opera browser, Linux Mint
iPhone XS
Raspberry PI 3 (KODI, Raspbian)
XBox One S, PS 4, nVidia GeForce NOW

jar_st
Level 2.5
Level 2.5
Příspěvky: 354
Registrován: září 09
Pohlaví: Muž
Stav:
Offline

Re: CMS - úpravy

Příspěvekod jar_st » 25 led 2012 20:56

Aha. Moc děkuju.Ještě bych se zkusil zeptat -jak se vytváří submenu -prostě to,co se vysune po najetí myši.
Mohl by jsi mi doporučit nějakou literaturu,ve který bych našel alespoň část odpovědí (základní informace)
Přílohy
menu.PNG
menu.PNG (5.12 KiB) Zobrazeno 408 x

Uživatelský avatar
CZechBoY
Master Level 9.5
Master Level 9.5
Příspěvky: 8813
Registrován: srpen 08
Bydliště: Brno
Pohlaví: Muž
Stav:
Offline
Kontakt:

Re: CMS - úpravy

Příspěvekod CZechBoY » 25 led 2012 21:03

to už je otázka CSS - na netu je fůra a větší fůra a ještě větší fůra návodů, tipů a triků :)
za předpokladu, že CMS vytváří menu přes UL-LI (seznamy) tak to bude jen otázka toho CSS :)

http://lmgtfy.com/?q=horizont%C3%A1ln%C ... C3%AD+menu
PHP, Nette, MySQL, C#, TypeScript, Python
IntelliJ Idea, Docker, Opera browser, Linux Mint
iPhone XS
Raspberry PI 3 (KODI, Raspbian)
XBox One S, PS 4, nVidia GeForce NOW


Zpět na “Programování a tvorba webu”

Kdo je online

Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 6 hostů