Autor | Zpráva | ||
---|---|---|---|
Ivorius Profil |
#1 · Zasláno: 13. 3. 2005, 22:16:07
Tak mam zde dalsi problem. Nevite jak dosáhnout toho, aby textpattern delal hezke odkazy?
|
||
thingwath Profil |
#2 · Zasláno: 13. 3. 2005, 22:35:01
Je pro to nabídka v administraci?
|
||
Ivorius Profil |
#3 · Zasláno: 13. 3. 2005, 22:36:59
jo, můžu si to tam nastavit
|
||
Časová prodleva: 12 dní
|
|||
victor_vega Profil * |
#4 · Zasláno: 25. 3. 2005, 13:19:48
TEXTPATTERN HELP
URL Mode Governs how permanent links to archived articles will appear. ?=messy mode is the most straightforward; it will work without you having to do much mucking about. In this mode URLs for archived articles on your site will look like this: http://www.yoursite.com/index.php?id=123 /clean/ mode is a little trickier, but it makes URLs that are elegant and easier to remember. Here are the steps to make /clean/ mode work: You must have ‘Use sections’ set in Site Preferences Your site must be on a Unix-based server running Apache, or on a Windows server running PHP as an Apache module For every section you have on your site (including the default section called ‘article’), place a text file with the exact same name in your root web directory, containing the following bit of code, replacing SECTION_NAME with the section’s actual name: <?php include "./textpattern/config.php"; $s = "SECTION_NAME"; include $txpcfg["txpath"]."/publish.php"; textpattern(); ?> Next, with a text editor create or open an existing file in your web root called .htaccess and paste the following inside: <Files SECTION_NAME> ForceType application/x-httpd-php </Files> again, replace SECTION_NAME with the section’s actual name. Once you select /clean/ url mode in Site Preferences, your permanent link urls will look more familiar: http://www.mysite.com/article/123/ |
||
Časová prodleva: 11 dní
|
|||
Ivorius Profil |
#5 · Zasláno: 5. 4. 2005, 20:28:22
hezké a teď česky
|
||
thingwath Profil |
#6 · Zasláno: 5. 4. 2005, 20:38:21
Ten vtip je v tom, že když chceš mít URL třeba
http://www.example.com/clanky/o_svete tak si vytvoříš soubor clanky do kterého umístíš uvedený PHP kód (nahraď SECTION_NAME). Pak musíš zajistit aby prošel PHP parserem. K tomu je ten záznam do .htaccess, ale to musí mít povolené hosting, jinak je nutné otravovat admina. |
||
Časová prodleva: 3 měsíce
|
|||
Ivorius Profil |
#7 · Zasláno: 20. 6. 2005, 11:21:26
|
||
Časová prodleva: 19 let
|
Toto téma je uzamčeno. Odpověď nelze zaslat.
0