Bunkertor 7 Posted May 15, 2007 Report Share Posted May 15, 2007 (edited) sveiki sobriid taisu lapu, kuru patiesiibaa vajadzeetu taisiit ar HTML (saturees infu par 30 dazaadiem objektiem) , bet taa kaa man slinkums visaam lapaam liimeet klaat navigaaciju, tad tomeer PHP :) Katra lapa izskataas apmeeram taa: <?php include("navig.php"); ?> <td width="358"><Te kaut kada infa, bilda utt... nav svarigi> <?PHP $pageTitle = 'Blahblahblah'; ?> </td> </tr> </table> </center> </body> </html> Tanii incluudaa ir lapas saakums ar navigaaciju un diemzeel arii TITLE tags :( Meeginaaju defineet $pageTitle un tad to izvest incluudaa starp <title> tagiem. Bet kaut kaa nesanaak. Vai jums ir kaadas idejas? Sorre par chata stilu - man te nav latvju klaviatuura... Edited May 15, 2007 by Bunkertor 7 Link to comment Share on other sites More sharing options...
cucumber Posted May 15, 2007 Report Share Posted May 15, 2007 (edited) Tagad tu vienkarshi ar php $pageTitle = 'Blahblahblah'; pieskir vertibu. Ieksh navig.php <title><?=$pageTitle; ?></title> ps. citu title tagu nevar izveidot, var tikai title taga mainit vertibu :) Edited May 15, 2007 by cucumber Link to comment Share on other sites More sharing options...
andrisp Posted May 15, 2007 Report Share Posted May 15, 2007 1) Par to HTML un PHP - vai tad tev lapa galu rezultātā tāpat nesanāk HTML lapa, neskatoties, ka tu to stiķē kopā ar PHP palīdzību ? ;) 2) Šādi vajadzētu strādāt: <?php $pageTitle = 'Nosaukums'; include("navig.php"); ?> Un iekš navig.php <title><?php echo $pageTitle; ?></title> Link to comment Share on other sites More sharing options...
aldis Posted May 15, 2007 Report Share Posted May 15, 2007 (edited) saraksti DB vai failaa nosaukumu listi.. un katrai lapai iedod savu identifikaciju... Jaa un pa to html lapu iisti nesapratu??? Lai vai ka.. ja gribi lai tev viss shitais iet.. nomaini visur galotnes un .php Edited May 15, 2007 by aldis Link to comment Share on other sites More sharing options...
Bunkertor 7 Posted May 15, 2007 Author Report Share Posted May 15, 2007 1) Par to HTML un PHP - vai tad tev lapa galu rezultātā tāpat nesanāk HTML lapa, neskatoties, ka tu to stiķē kopā ar PHP palīdzību ? ;)2) Šādi vajadzētu strādāt: Uugh... milziigs paldies. Tieshaam straadaa! Gala rezultaataa tomeer buus filenames.php, jo iespeejams veelaak man buus jaaimplantee veel kaut kaadi skripti. Tachu nekaadu argumentu un session ID man tur vienalga nav taa kaa no SEO viedoklja buus labs arii .php Mana ieprieksheejaa pieredze raada, ka Guglei ir po*, kameer vinjas spaibotu nedzenaa pa gariem argumentiem. Link to comment Share on other sites More sharing options...
andrisp Posted May 15, 2007 Report Share Posted May 15, 2007 Vari jau arī izmantot url_rewriting. Tad GET argumentus varētu arī smuki padot. Tā lai Googlebots neaizrijas. Piem.: http://www.example.com/?cat=blog&news_id=12 vietā http://www.example.com/blog/12 Te pat forumā pameklē. Bija smuks piemērs htaccess failam, kas padod visus argumentus kā vienu stringu PHP skriptam. Un tādejādi visu pārsēšanu var veikt pašā PHP skriptā. Link to comment Share on other sites More sharing options...
xerts Posted May 23, 2007 Report Share Posted May 23, 2007 izmanto dynamic title if(@$dynamic_title=="") { print $set['sitename']; } elseif(@$dynamic_title!="") { print @$dynamic_title; } tad katra lapa $dynamic_title = '*****'; Link to comment Share on other sites More sharing options...
Recommended Posts