Zen 6.1 smink készítése - smink módosítása alsmink készítésével

The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.
Kategória: 
Leírás

Gondolkoztam, hogy a teaserben ejtsem-e meg a rizsát, hogy miért nem voltam jó darabig, de mondjuk miért is ne: Szóval kb. 20% lustaság vs. 80% elfoglaltság, az tuti, hogy 3 hétig drupal közelében sem jártam. Mellesleg életemben először dolgoztam úgy, hogy nem én csináltam mindent egy site-on belül, hanem kizárólag a smink kialakítása volt a dolgom, ráadásul a megrendelőt sem én tartottam a kezemben, tehát volt néhány érdekes probléma, amit meg kellett oldanom.

Ennyit a zöldségről, nézzük, hogyan hozunk létre új, meztelen zen sminket. Ezt úgy fifti-fifti a drupal.org-os leírás, és a saját megszokásaim alapján írom.

Az itt leírtak jórészt minden sminkre vonatkoznak, amelyen módosítani szeretnénk. Itt ragadnám meg újra az alkalmat, hogy közzétegyem az agyonbeszélt figyelmeztetést, amit a legtöbben (főleg a drupallal frissen ismerkedők) előszeretettel nem tartanak be:

Semmilyen kívülről letöltött drupal sminket nem módosítunk, sem a tpl-eket, sem a css-est, sem egyéb benne található file-t, különben bármilyen frissítéskor kellemetlen meglepetés érhet!

A szabályos, biztonságos megoldás az (még ha csak egy sort is kell átírni a css-ben..), hogy alsminket hozunk létre, a lent leírtak alapján. És még egy fontos: Ez a drupal 6.x verzióra vonatkozik, 5.x-ben nem minden ugyanígy van. Közben belenéztem a 6.2-es zen sminkbe is, itt is van némi változás, úgyhogy 100%-ban az itt leírtak 6.1-es zenre érvényesek.

Hozzunk létre a sites/all/themes/ könyvtárban egy alkönyvtárat a saját sminkünknek. Célszerű az oldal nevét felhasználni, ha mondjuk a későbbiekben 20-30 sminket elkészítettél, nem rossz az, ha nem pistikesminkje15-szerű könyvtárnevekben kell turkálni.

Másoljuk be Zen smink esetén a Starterkit könyvtár tartalmát, más smink esetén az eredeti smink könyvtárában található összes file-t.

Találunk itt egy STARTERKIT.info.txt nevű file-t, ezt nevezzük át sminkünkneve.info-ra. Ha nem zen alsminket készítünk, akkor egy eredetisminkneve.info file-unk van, ezt nevezzük át.

Nyissuk meg egy szövegszerkesztőben, és kezdjünk el benne turkálni:

A name = Zen Sub-theme Starter Kit írjuk át: name = sminkünkneve
A description = sor tartalmazza azt a szöveget, amit a drupalon belül a sminkek listázásakor olvashatunk, ide bármit be lehet írni.
A screenshot = screenshot.png ez az a kép a sminked könyvtárában, ami a sminkek listázásakor jelenik meg. Én nem szoktam bántani, inkább átméretezekem az képet, amiből dolgozok, és lementem screenshoot.png néven.

A core, és a base theme sort ne bántsuk, ha zen sminket készítünk. Ha más sminkből készítünk alsminket, akkor viszont ezt a sort nekünk kell beszúrni: base theme = eredetisminkneve Ezzel tudatjuk a drupalllal, hogy ki is az anyuci.

A következő részben azokat a css file-okat adhatjuk meg, amiket módosítani szeretnénk. Zennél alapértelmezetten a layout.css, html-elements.css, és a Starterkit.css és a print.css van bejelölve. A stylesheets[all][] = Starterkit.css-t értelemszerűen írd át stylesheets[all][] = sminkünkneve.css-re.
Hogy miket, hogyan használsz ezekből, pusztán kényelmi kérdés. Én az alapértelmezett css struktúrát szeretem, de ha úgy gondolod, hogy minden css stílust egy file-on belül akarsz kezelni, akkor a sminkünkneve.css kivételével kitörölheted az összes sort.

Ha valaminek nagyon egyedi megjelenést akarsz, (nekem nem tudom miért mániám, a fórumok stílusait szeretem valamiért külön file-ban kezelni..) beszúrhatsz új stíluslapot is: pl. stylesheets[all][] = forum.css

A zen készítői látnoki képességekkel megáldva gondoltak arra az elég gyakori szkenárióra, amikor Bill Gates összes rokonságát szidva próbálod Internet Explorerben is elfogadható megjelenésűre gyúrni az oldalt. Ez a sor épp erre való:
conditional-stylesheets[if IE][all][] = ie.css
És ami a lényeg: Amelyik css file-okat itt megadtál, másold át a a zen könyvtárból a saját sminked könyvtárába. Ne hagyd ott a zen.css-t sem, ugyanis ezt kell átnevezned sminkünkneve.css-re.
Nem hiányzik valami? Vagy észrevetted, vagy nem, de nincs layout.css a zen könyvtárában. Neeem, ez nem a zen programozók szivatása, igazából kettő is van belőle, a layout-fixed.css, és a layout-liquid.css. Ha azt szeretnéd, hogy az oldalad szépen a böngésződ közepén legyen, mondjuk 1000px fix szélesekkel, akkor a layout-fixed.css-t másold át layout.css néven, ha olyan oldalt szeretnél, amelyik a felbontástól függetlenül a böngésző egész szélességében terpeszkedik, akkor.. (ezt találd ki!:))

Ha nem zen sminkkel dolgozol, akkor az eredetisminkneve.css-t kell átírni sminkünkneve.css-re, és módosítani az info file-ban a megfelelő sort, vagy ha nincs, akkor felvenni:
stylesheets[all][] = sminkünkneve.css

Az info file további részét hagyjuk, régiók és alapértelmezett beállítások vannak a továbbiakban ez megérne egy külön posztot is.. úgyhogy ahogy az öreg Pósalaki bácsi mondta Nyilas Misinek: Ugrodjunk!

Ja, még egy gyors warning: Ha notepad++-t használsz (bocs, iterato :), akkor vigyázz arra, hogy mentéskor a formátum UTF 8 kódolás BOM nélkül legyen bármilyen drupallal kapcsolatos file módosításakor, különben érhetnek meglepetések.

Az info file-al végeztünk, ha nem néztünk be valamit, akkor elvileg már minden file a helyén van, nyissuk meg a template.php nevű file-t. Itt bármilyen szövegszerkesztőt használsz, nyisd meg a "csere" menüpontját. Felülre írd be, hogy STARTERKIT, alulra pedig az új sminked nevét, és bátran kattints az "Összes cseréje" gombra.
Ugyanezt végezd el a theme-settings.php-val is
, és voila! Kész a vacsiúj zen alapú sminkünk!

Ha ezek után a drupalon belül átváltasz a új sminkedre, és elfog a miezarondaság érzés, a továbbiakban érdemes ezeket is olvasgatni:
CSS alapjai
XHTML és CSS oktatás magyarul

Ha nem Zen alsminket készítesz, nem bizos, hogy lesz template.php vagy theme-settings.php. Ha mégis találsz, akkor ugyanúgy kell csereberélni, mint a zennél, csak felülre az eredeti sminked nevét kell írni.

Ide még gondoltam néhány gyors tippet, de mivel megint elszaladt velem a billentyűzet, szerintem egy másik poszt lesz, remélem nem másfél hónap múlva..

Hozzászólások

Hey I know this is off topic

Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.|

My brother recommended I

My brother recommended I might like this web site. He was entirely right. This post truly made my day. You can not imagine just how much time I had spent for this info! Thanks!|

Negative foodstuffs top

Negative foodstuffs top quality is a dilemma that must are yet to taken place is among the.

Business employers might be

Business employers might be looking for someone who have to have numerous particular ability and experience, for which you can own although did not stated into your curriculum vitae.

The following brand-new

The following brand-new high-end rental property will be ultra proportions utilizing 3400+ {square feet|sq ft|sq .

All of these undesirable

All of these undesirable problems make an insulting aside in the textile in marital life and might eliminate it again.

Exercise varies within

Exercise varies within vividness.

hey there and thank you for

hey there and thank you for your info – I've certainly picked up anything new from right here. I did however expertise several technical points using this web site, since I experienced to reload the website many times previous to I could get it to load properly. I had been wondering if your web hosting is OK? Not that I'm complaining, but slow loading instances times will often affect your placement in google and could damage your high-quality score if advertising and marketing with Adwords. Anyway I'm adding this RSS to my e-mail and could look out for much more of your respective intriguing content. Ensure that you update this again soon.|

You are so interesting! I

You are so interesting! I don't believe I've truly read through anything like
that before. So great to find another person with genuine
thoughts on this issue. Really.. many thanks for starting this up.
This site is something that is required on the web, someone with
a bit of originality!

Can I just say what a relief

Can I just say what a relief to find somebody
who actually understands what they're talking about on the web.
You actually realize how to bring a problem to light and make it important.
A lot more people must read this and understand this side of your
story. It's surprising you aren't more popular
given that you surely possess the gift.

Hello to every body, it's my

Hello to every body, it's my first pay a quick visit of this website;
this blog contains amazing and truly good data designed for readers.

Hi, everything is going

Hi, everything is going perfectly here and ofcourse every one
is sharing facts, that's truly excellent, keep up writing.

My brother suggested I might

My brother suggested I might like this website. He was totally right.
This post truly made my day. You cann't imagine simply how much time I had
spent for this information! Thanks!

I was able to find good info

I was able to find good info from your blog articles.|

Great goods from you, man.

Great goods from you, man. I've understand your stuff previous to and you
are just too wonderful. I actually like what you have acquired here,
certainly like what you're stating and the way in which you say it.
You make it entertaining and you still take care of to keep it sensible.
I can not wait to read much more from you. This is actually
a great site.

Willie G youllied Thank you

Willie G youllied

Thank you for the auspicious writeup. It in fact was a amusement account it.
Look advanced to far added agreeable from you! By the way,
how can we communicate?

This info is invaluable. How

This info is invaluable. How can I find out more?

Hey I know this is off topic

Hey I know this is off topic but I was wondering if you knew of any
widgets I could add to my blog that automatically tweet my newest twitter updates.
I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this.
Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your
new updates.

Incredible story there. What

Incredible story there. What occurred after? Good luck!

Anaheim Divorce Lawyers in Practice
204 S Illinois St, Anaheim, CA 92805
714-410-5333
sabihafelix09835 [at] gmail [dot] com

Pretty! This was an extremely

Pretty! This was an extremely wonderful post. Many thanks for providing
this info.

My partner and I stumbled

My partner and I stumbled over here coming from a different
page and thought I should check things out. I like
what I see so now i am following you. Look forward to exploring
your web page again.

Independance Immobilière -

Independance Immobilière - Agence Dakar Sénégal
Av. Fadiga, Immeuble Lahad Mbacké
BP 2975 Dakar
+221 33 823 39 30

Agence Immobilière Dakar

Have you ever thought about writing an ebook or guest
authoring on other sites? I have a blog centered on the same information you discuss and
would really like to have you share some stories/information. I know my subscribers
would appreciate your work. If you are even remotely interested, feel free to send me an e-mail.

Appreciating the time and

Appreciating the time and energy you put into your website and in depth
information you offer. It's awesome to come across a blog every once in a while that
isn't the same outdated rehashed material.
Wonderful read! I've bookmarked your site and I'm including your RSS feeds to my Google account.

I have learn several just

I have learn several just right stuff here. Definitely value bookmarking for revisiting.
I surprise how much attempt you set to create
this kind of excellent informative site.

Hi there! I know this is

Hi there! I know this is kinda off topic however I'd figured I'd ask.
Would you be interested in exchanging links or maybe guest
writing a blog post or vice-versa? My site addresses a lot of the same topics as yours and I think we could greatly benefit from each other.
If you might be interested feel free to shoot me an e-mail.
I look forward to hearing from you! Awesome blog by the way!

M.E.C Mon Electricien

M.E.C Mon Electricien Catalan
44 Rue Henry de Turenne
66100 Perpignan
0651212596

Electricien Perpignan

Thanks a bunch for sharing this with all people you really realize
what you're talking about! Bookmarked. Kindly also visit my website =).
We may have a link alternate agreement between us

Hello there! Quick question

Hello there! Quick question that's completely off topic. Do you know how to make your site mobile friendly? My blog looks weird when browsing from my iphone 4. I'm trying to find a template or plugin that might be able to correct this problem. If you have any suggestions, please share. Many thanks!|

I really like what you guys

I really like what you guys tend to be up too.
This sort of clever work and reporting! Keep up the great works guys I've included you guys
to my personal blogroll.

FlexBuild Huntington Beach Concrete Company
2520 Florida St, Huntington Beach, CA 92648
714-410-5374
suzannaweiss98719 [at] gmail [dot] com

That is really fascinating,

That is really fascinating, You are an excessively skilled blogger.

I have joined your rss feed and sit up for in search of extra of your wonderful post.
Also, I have shared your website in my social networks

Hmm is anyone else having

Hmm is anyone else having problems with the pictures on this blog loading?
I'm trying to determine if its a problem on my end or if
it's the blog. Any feedback would be greatly appreciated.

Nice blog here! Also your

Nice blog here! Also your website loads up very fast!

What host are you using? Can I get your affiliate link to your host?
I wish my website loaded up as quickly as yours lol

I have read so many posts

I have read so many posts regarding the blogger lovers except this article is truly a nice post, keep it up.|

Hi to all, as I am in fact

Hi to all, as I am in fact eager of reading this weblog's post
to be updated on a regular basis. It contains
fastidious stuff.

Hello! Do you use Twitter?

Hello! Do you use Twitter? I'd like to follow you if that would be ok.
I'm undoubtedly enjoying your blog and look forward to new posts.

Hi there mates, good post and

Hi there mates, good post and fastidious arguments commented at this place, I am in fact enjoying by these.

Hi there, i read your blog

Hi there, i read your blog from time to time and i own a
similar one and i was just curious if you get a lot of spam feedback?
If so how do you prevent it, any plugin or anything you can advise?
I get so much lately it's driving me insane so any help is very much appreciated.

Awesome post.

Awesome post.

Right now it seems like

Right now it seems like Expression Engine is the preferred blogging platform available right now.
(from what I've read) Is that what you are using on your blog?

Peculiar article, exactly

Peculiar article, exactly what I wanted to find.

Keep on writing, great job!

Keep on writing, great job!

I'm truly enjoying the design

I'm truly enjoying the design and layout of your
blog. It's a very easy on the eyes which makes it much more
enjoyable for me to come here and visit more often. Did you hire out a
designer to create your theme? Superb work!

Taxi moto line 128 Rue la

Taxi moto line
128 Rue la Boétie
75008 Paris
+33 6 51 612 712  

Taxi moto paris

Very great post. I just stumbled upon your weblog and wanted to mention that I have
truly enjoyed browsing your weblog posts. In any case I'll be subscribing in your feed and I hope you write again very soon!

For hottest news you have to

For hottest news you have to go to see world wide web and on the web I found this web page as a finest site for newest updates.|

Appreciate the

Appreciate the recommendation. Let me try it out.

Hi, I do think your site may

Hi, I do think your site may be having web browser compatibility issues.
When I take a look at your website in Safari, it looks
fine however, when opening in IE, it has some overlapping
issues. I merely wanted to give you a quick heads up!
Besides that, great blog!

Hello, the whole thing is

Hello, the whole thing is going well here and ofcourse every one is sharing facts, that's genuinely excellent, keep up writing.

Can I simply say what a

Can I simply say what a comfort to discover someone that genuinely understands what they're talking
about on the internet. You actually understand how to bring an issue to light and make
it important. More people must look at this and understand this side of the story.
I was surprised you're not more popular since you certainly possess the gift.

Hi Dear, are you in fact

Hi Dear, are you in fact visiting this site regularly, if so then you will
definitely obtain good know-how.
Jim's San Jose Carpet Cleaning
780 S 3rd St, San Jose, CA 95112
3408-351-1063
colettemackie2641 [at] gmail [dot] com

Independance Immobilière -

Independance Immobilière - Agence Dakar Sénégal
Av. Fadiga, Immeuble Lahad Mbacké
BP 2975 Dakar
+221 33 823 39 30

Agence Immobilière Dakar

Hi there, always i used to check website posts here early in the dawn,
for the reason that i enjoy to learn more and
more.

Hi there, this weekend is

Hi there, this weekend is nice for me, as this occasion i am reading this impressive educational
post here at my residence.

Hozzászólás

A mező tartalma nem nyilvános.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Engedélyezett HTML elemek: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <del> <img>
  • A webcímek és email címek automatikusan linkekké alakulnak.
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.
  • Engedélyezett HTML elemek: <a> <blockquote> <br> <cite> <code> <dd> <del> <div> <dl> <dt> <em> <li> <ol> <p> <span> <strong> <ul>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <sql>. The supported tag styles are: <foo>, [foo].
  • Minden email cím át lesz alakítva ember által olvasható módon, vagy (ha a JavaScript engedélyezett) ki lesz cserélve kattintható, de biztonságos hivatkozásra.