Jump to content

Newbie tanya!! gimana center image di editorial module


oceanserv

Recommended Posts

Weleh pake

yach. Ok, kalau mau pake
yang di edit jangan phpnya, tapi editorial.tplnya.

berikut kode lengkap editorial.tpl yang sudah di sisipin



   {if $xml->body->home_logo_link}body->home_logo_link|escape:'htmlall':'UTF-8'}" title="{$xml->body->$title|escape:'htmlall':'UTF-8'|stripslashes}">{/if}
       {if $homepage_logo}body->$title|escape:'htmlall':'UTF-8'|stripslashes}" />{/if}
   {if $xml->body->home_logo_link}{/if}
   {if $xml->body->$logo_subheading}{$xml->body->$logo_subheading|stripslashes}{/if} 
   {if $xml->body->$title}{$xml->body->$title|stripslashes}{/if}
   {if $xml->body->$subheading}{$xml->body->$subheading|stripslashes}{/if}
   {if $xml->body->$paragraph}{$xml->body->$paragraph|stripslashes}{/if}

Link to comment
Share on other sites

Makasih mas kowoy masukannya tadi saya coba, cuma beda sama punya mas kowoy. kira saaya salah gak masukinnya ?



   {if $xml->body->home_logo_link}


body->home_logo_link|escape:'htmlall':'UTF-8'}" title="{$xml->body->$title|escape:'htmlall':'UTF-8'|stripslashes}">{/if}
       {if $homepage_logo}body->$title|escape:'htmlall':'UTF-8'|stripslashes}" />{/if}
   {if $xml->body->home_logo_link}{/if}


   {if $xml->body->$logo_subheading}{$xml->body->$logo_subheading|stripslashes}{/if} 
   {if $xml->body->$title}{$xml->body->$title|stripslashes}{/if}
   {if $xml->body->$subheading}{$xml->body->$subheading|stripslashes}{/if}
   {if $xml->body->$paragraph}{$xml->body->$paragraph|stripslashes}{/if}





Terus mas cara yang laen selain edit di editorial.tpl dimana mas ? kalo boleh tau


Mohon Pencerahan

Link to comment
Share on other sites

Cara lain? tanpa mengutak-atik script cukup dengan membuat image yang lebarnya sama dengan area yang akan di isi. Kasih aja background transparant atau putih.

Tanpa cara-cara tersebut susah karena antara image dgn keterangan gambar (caption) nya memang inline, tanpa attribut css sama sekali.

cara lain? nanti klo dah mentok aja dikaish tahunya ;)

Link to comment
Share on other sites

Cara lain? tanpa mengutak-atik script cukup dengan membuat image yang lebarnya sama dengan area yang akan di isi. Kasih aja background transparant atau putih.

Tanpa cara-cara tersebut susah karena antara image dgn keterangan gambar (caption) nya memang inline, tanpa attribut css sama sekali.

cara lain? nanti klo dah mentok aja dikaish tahunya ;)





waduh kalo jpg di resize bisa mas, masalahnya kalo animation gif diresize animationnya ilang.

tapi dicoba-lagi deh gimana caranya buat ditengah2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...