Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5

url news et google
#49

Ben voila Pierre il ne te reste plus qu'à t'y coller Wink

Une solution pour CGfeedmaker en réécrivant les URL

Code :
[== Indéfini ==]
{news assign='junk'}
    {if isset($items)}
    {foreach from=$items item='entry'}
{$lien=""}
{$detail_page="280"}
{$gabarit_det="actualites"}
{$aliased_title = munge_string_to_url($entry->title)}

{if $entry->category == "Travaux en cours" or $entry->category == "Techniques 3D"}
{$detail_page="412"}
{$gabarit_det="travaux"}
{/if}

{if $entry->category == "Pédagogie"}
{$detail_page="418"}
{$gabarit_det="travaux"}
{/if}

{if $entry->category == "musées"}
{$detail_page="422"}
{$gabarit_det="musees"}
{/if}
    <item>
{assign var="lien" value="{root_url}/news/{$entry->id}/{$detail_page}/{$aliased_title}/d,{$gabarit_det}.html"}
      <title>{$entry->title|cms_html_entity_decode}</title>
      <link>{$lien}</link>
      {capture assign='description'}{if isset($entry->summary)}{$entry->summary}{else}{$entry->content}{/if}{/capture}
      <description>{$description}</description>
      <pubDate>{$entry->postdate|rfc_date}</pubDate>
      <guid>{$lien}</guid>
    </item>
    {/foreach}
    {/if}

MS-Dos, Gem, geoworks, Windows 1, 2, 3, 3.1, 95, 98, XP, seven, 8, 10 Smile
Mac system 1 à 6
Wampserver 3.1.9,
PhP 7.3.5,
CMS version 2.2.11
Répondre


Messages dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)