Saját modulban saját template hozzáadása

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: 
Gyorstippek

Feladat a kövi: Lightboxban megjelenő formot kell létrehozni, mégpedig a szokásos "körítés" nélkül, vagyis menük, blokkok ne legyenek benne.

Ha a menu_callback-ben print()-tel írjuk ki a kimenetet, akkor teljesen üres oldalon jelenik meg. Viszont nekem kellettek hozzá a css-ek, js-ek is, emiatt saját page.tpl.php-t kellett hozzáadnom az általam készített menüútvonalhoz.

Ez két apró lépés:
A smink regisztrációs gyorstárral megetetjük, hogy van ám nekünk saját tpl.php-nk is. A $theme_registry['page']- lecserélhető a tetszőleges theme hookra, node, vagy comment, vagy amit akarsz.

[geshifilter-drupal6]function MODULOM_theme_registry_alter(&$theme_registry) { $theme_registry['page']['theme paths'][] = drupal_get_path('module', 'MODULOM') ; }[/geshifilter-drupal6]

Majd a megfelelő preprocessben megadjuk a feltételeket: Ha más hookot használunk, értelemszerűen a másik hook preprocessét kell használni.

[geshifilter-drupal6]function MODULOM_preprocess_page(&$vars) { if (ide jön a feltétel, amikor a saját tpl.php-dat akarod látni pl arg(0) == 'valami') { $vars['template_file'] = 'custom-hooks-page' ; } }[/geshifilter-drupal6]

Sminkgyorstár ürítés, és voilá.
Köszi Sweetchucknak a segítségért! :)

Hozzászólások

Hi, Neat post. There is an

Hi, Neat post. There is an issue along with your website in web explorer, would check this? IE nonetheless is the marketplace leader and a large section of other folks will leave out your magnificent writing due to this problem.|

It's an awesome post in favor

It's an awesome post in favor of all the online visitors; they will get benefit from
it I am sure.

It's in fact very complicated

It's in fact very complicated in this busy life to listen news on Television, thus I just
use internet for that purpose, and take the most recent information.

Fastidious answers in return

Fastidious answers in return of this matter with genuine arguments and telling everything
about that.

Hello, i read your blog

Hello, i read your blog occasionally and i own a similar one and i was just
wondering if you get a lot of spam feedback? If so how do you stop it, any plugin or anything you
can recommend? I get so much lately it's driving me mad so
any support is very much appreciated.

Hello I am so happy I found

Hello I am so happy I found your website, I really found you by error, while I was researching
on Aol for something else, Anyways I am here now and
would just like to say kudos for a fantastic post and a all round
exciting blog (I also love the theme/design), I don’t have time to go through it all
at the minute but I have bookmarked it and also included your RSS feeds, so when I
have time I will be back to read much more, Please do keep up the great work.

Hello there! This is my first

Hello there! This is my first comment here so I just
wanted to give a quick shout out and tell you I truly enjoy
reading your blog posts. Can you recommend any other blogs/websites/forums that deal with the same topics?
Thanks!

I am sure this article has

I am sure this article has touched all the internet viewers, its really really fastidious paragraph on building up new blog.

Greetings! Very useful advice

Greetings! Very useful advice within this article!
It is the little changes which will make the greatest
changes. Thanks a lot for sharing!

Its like you read my mind!

Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something.
I think that you can do with a few pics to drive the message home a little bit, but other than that, this is
excellent blog. An excellent read. I'll definitely be back.

Someone essentially assist to

Someone essentially assist to make critically articles I would state.

This is the first time I frequented your web page and
so far? I amazed with the analysis you made to create this actual publish extraordinary.

Wonderful job!

I don't even know the way I

I don't even know the way I ended up right here, however I thought this publish was once great.
I do not realize who you're however definitely you're going to a well-known blogger
if you aren't already. Cheers!

I'm impressed, I have to

I'm impressed, I have to admit. Seldom do I come
across a blog that's both equally educative and
amusing, and without a doubt, you've hit the nail on the head.
The issue is something that too few people are speaking intelligently about.
Now i'm very happy I found this in my search for something
concerning this.

Fine way of describing, and

Fine way of describing, and good piece of writing
to obtain data on the topic of my presentation focus,
which i am going to convey in academy.

I'd like to find out more?

I'd like to find out more? I'd love to find out more details.

you are truly a good

you are truly a good webmaster. The website loading velocity is incredible.
It seems that you are doing any unique trick. Furthermore,
The contents are masterwork. you've performed a magnificent process on this
topic!

Very nice post. I just

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

You could certainly see your

You could certainly see your expertise in the article you write.
The arena hopes for more passionate writers like you who
aren't afraid to mention how they believe. Always follow
your heart.

Hi, i read your blog

Hi, i read your blog occasionally and i own a similar one and i was just curious if you get a lot of spam feedback?

If so how do you stop it, any plugin or anything
you can recommend? I get so much lately it's driving me insane so any help is very much appreciated.

I go to see every day a few

I go to see every day a few blogs and websites to read articles, but this webpage presents feature based writing.

You've made some decent

You've made some decent points there. I looked on the internet for additional information about the
issue and found most people will go along with your views on this web site.

Today, while I was at work,

Today, while I was at work, my cousin stole my iphone and tested
to see if it can survive a 25 foot drop, just so she
can be a youtube sensation. My iPad is now destroyed and she has
83 views. I know this is totally off topic but I had to share it with someone!

Definitely believe that which

Definitely believe that which you stated. Your favourite reason seemed to be
on the web the simplest factor to keep in mind of.
I say to you, I certainly get irked even as people think about issues that
they just don't recognize about. You controlled to
hit the nail upon the top and also defined out the whole thing without having side-effects
, people can take a signal. Will likely be back to get more.

Thanks

Wow, this post is nice, my

Wow, this post is nice, my younger sister is analyzing
these kinds of things, so I am going to inform her.

I really like it whenever

I really like it whenever people come together and share
opinions. Great site, stick with it!

I know this site offers

I know this site offers quality depending articles or reviews and
additional information, is there any other site which provides such things in quality?

I am regular reader, how are

I am regular reader, how are you everybody? This paragraph posted
at this website is in fact good.

We are a gaggle of volunteers

We are a gaggle of volunteers and starting
a new scheme in our community. Your site offered us with
useful info to work on. You have performed an impressive job and our entire neighborhood
shall be thankful to you.

Hi there, yup this piece of

Hi there, yup this piece of writing is truly good and I have learned lot of things from it concerning blogging.
thanks.

Excellent items from you,

Excellent items from you, man. I have have in mind your stuff prior to and you're just
extremely great. I really like what you have received here, certainly like what you're stating and the
way in which during which you assert it. You make it enjoyable and you still care for to keep it sensible.
I can't wait to learn much more from you. That is actually a tremendous web site.

Thanks for any other

Thanks for any other informative web site. Where else
may just I get that kind of information written in such a perfect method?
I've a venture that I'm simply now working on, and I have been at the look out for such information.

Hello, I enjoy reading all of

Hello, I enjoy reading all of your article post.
I like to write a little comment to support you.

Hi there! I know this is

Hi there! I know this is somewhat off topic but I was wondering which blog
platform are you using for this site? I'm getting fed up of
Wordpress because I've had issues with hackers
and I'm looking at alternatives for another platform.
I would be fantastic if you could point me in the direction of a good platform.

Great article. I'm dealing

Great article. I'm dealing with some of these issues as well..

I all the time used to study

I all the time used to study piece of writing in news papers but now as I am a user of net therefore
from now I am using net for articles, thanks to web.

Hi there, I found your web

Hi there, I found your web site via Google at the same time as looking for a comparable subject, your
site came up, it seems great. I've bookmarked it in my google
bookmarks.
Hello there, simply became aware of your blog via Google,
and located that it is really informative. I am gonna be careful for brussels.
I will be grateful if you proceed this in future.
Numerous people shall be benefited out of your writing.

Cheers!

I need to to thank you for

I need to to thank you for this excellent read!!
I definitely loved every little bit of it. I have you book
marked to check out new things you post…

Howdy! This is kind of off

Howdy! This is kind of off topic but I need some guidance from an established blog.
Is it very difficult to set up your own blog?
I'm not very techincal but I can figure things out pretty fast.

I'm thinking about creating my own but I'm not
sure where to start. Do you have any tips or suggestions?
Thanks

If you are going for most

If you are going for most excellent contents like myself, only visit this web page daily for
the reason that it presents quality contents, thanks

I quite like looking through

I quite like looking through an article that will make men and women think.
Also, thanks for allowing me to comment!

I am really impressed along

I am really impressed along with your writing talents as well as with the format on your blog.
Is that this a paid topic or did you modify it yourself? Either way
keep up the excellent high quality writing, it's rare to look a nice blog like this one nowadays..

hello there and thank you for

hello there and thank you for your information – I have definitely picked up something
new from right here. I did however expertise a few technical issues using this
web site, as I experienced to reload the web site a lot of times previous to I could get it to load correctly.
I had been wondering if your hosting is OK? Not that
I'm complaining, but slow loading instances times
will very frequently affect your placement in google and
can damage your high quality score if advertising and marketing with Adwords.
Well I'm adding this RSS to my e-mail and can look out for much more of your respective
fascinating content. Make sure you update this again very soon.

What's up friends, its

What's up friends, its wonderful paragraph about
educationand completely explained, keep it up all the time.

Please let me know if you're

Please let me know if you're looking for a article author for your blog.
You have some really good posts and I feel I would be a good asset.
If you ever want to take some of the load off, I'd
really like to write some material for your blog in exchange for a link back to mine.
Please shoot me an email if interested. Regards!

Having read this I believed

Having read this I believed it was extremely enlightening.
I appreciate you spending some time and effort to put this content together.
I once again find myself spending way too much time both reading and
commenting. But so what, it was still worthwhile!

Usually I don't read article

Usually I don't read article on blogs, however I would like to say that this write-up very pressured me to check out and do
so! Your writing taste has been amazed me. Thank you, quite
nice article.

Excellent post. I was

Excellent post. I was checking continuously this weblog
and I am impressed! Very useful information particularly the final part :) I deal with such information much.
I was seeking this particular information for a very lengthy time.
Thank you and best of luck.

Remarkable things here. I am

Remarkable things here. I am very glad to peer
your post. Thank you a lot and I'm having a look
ahead to touch you. Will you kindly drop me a mail?

This is a good tip

This is a good tip particularly to those new to the blogosphere.
Simple but very precise info… Many thanks for sharing this
one. A must read article!

It's perfect time to make

It's perfect time to make some plans for the future and it's time to be happy.

I've read this post and if I could I desire to suggest you few interesting things or suggestions.
Maybe you can write next articles referring to this article.
I want to read more things about it!

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.