New Module: about

Amalaswinta

Joined: 2011-06-06
Posts: 67
Posted: Thu, 2011-06-09 14:31

thanks for the quick reply! :D

unfortunately, it doesn't work, the sidebar's still there?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2011-06-09 14:56

url?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Amalaswinta

Joined: 2011-06-06
Posts: 67
Posted: Thu, 2011-06-09 15:02
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2011-06-09 15:43

try this. I forgot a helper file and now you should be able to add/edit the css so it is used.

EDIT:try the version on the codex page.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Amalaswinta

Joined: 2011-06-06
Posts: 67
Posted: Thu, 2011-06-09 15:50
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2011-06-09 16:01

Thanks, I uploaded the file to the codex page.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2011-06-09 18:43

Amalaswinta,
then I bet you want to make the content of the page wider as well, now that the sidebar is gone.

#g-content {
width: 840px;
}

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Amalaswinta

Joined: 2011-06-06
Posts: 67
Posted: Thu, 2011-06-09 18:58

you are now officially my hero for helping me :)

but..erm... nothing changes?

 
Amalaswinta

Joined: 2011-06-06
Posts: 67
Posted: Thu, 2011-06-09 19:07

oh dear, returning my attention to the rest of the gallery I now see the sidebar has disappeared all together :P

heh, I'm beginning to think maybe I should take a break ;)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2011-06-09 19:13

Sorry let me fix that as well.
give me a few min

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2011-06-09 19:47

There,
This should be better. It will only deliver the css on the About page.
let me know if it works.
I should have done more testing before telling you to do stuff. ;-)

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Amalaswinta

Joined: 2011-06-06
Posts: 67
Posted: Thu, 2011-06-09 20:03

you're a genius :)

sidebar shows everywhere but on the about page.

(I'm afraid to say) the content width doesn't change though...

 
Amalaswinta

Joined: 2011-06-06
Posts: 67
Posted: Thu, 2011-06-09 21:21

Dave: I fixed the margins in the admin for the module with plain and simple html margin codes :)
not as stylish as CSS but it works.

should you feel the need to add all this to the module officially I will of course be the first to download :D

again: you are officially my hero for helping me out this way! :D

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2011-06-09 22:23

Thanks,
I don't think this should go into the module some users might want to keep the sidebar on the page.
G3 philosophy: keep it simple first, then.....

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Amalaswinta

Joined: 2011-06-06
Posts: 67
Posted: Thu, 2011-06-09 22:29

true.
I was thinking more in the line of adding an option in the admin area where a user can choose to hide the sidebar, resulting in adjusted margins as well :)

eh, maybe in a few months or so I'll actually understand all this stuff I can do it myself (not.. hahaha)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2011-06-12 03:03

Stay tuned. I will add that option. I will also add a Rich text editor to the admin page in another module.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Amalaswinta

Joined: 2011-06-06
Posts: 67
Posted: Sun, 2011-06-12 04:37
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2011-06-12 16:22

Updated the module to allow an admin setting to turn off the sidebar with CSS and make the content width wider.
Also if the edit tinymce module is active you get a rich text editor on the admin page.

You might consider using the Pages module. It has the ability to add more than one page and has a rich text editor as well.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Amalaswinta

Joined: 2011-06-06
Posts: 67
Posted: Sun, 2011-06-12 16:52

excellent!
you're a hard worker :)

Thanks for pointing out the pages module, I can use that for some other stuff.

YAY! now all I have to do is get the Facebook plugins in shape and my site's done :D

 
Amalaswinta

Joined: 2011-06-06
Posts: 67
Posted: Thu, 2011-06-16 20:16

hey Dave, me again :p

two questions this time:

I'd like to duplicate the about module to create other pages (I did look at the Pages module but I prefer the About module due to the sidebar thing).
Thing is, even though the copy ends up in the module list (in admin) and I can activate and save it, it doesn't end up in the Settings. I know I'm doing something wrong, I just don't know what...

Second: maybe even more important, would it be possible for the About module to interact with the Multilanguage module so when I change the language to Dutch, the contents of the About page also change?
If that should be a hassle, could you tell me what page to edit to enter an 'if locale=nl then' construction (and the correct code because I know this won't work hehe)??

thanks in advance :)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2011-06-16 21:44

http://codex.gallery2.org/Gallery3:Modules:services
Use a file caparison program (I use http://winmerge.org/) to compare the two to see what is necessary to rename a module.

@translation: YOu can edit the view file manually and add text like:
<?= t("YOUR text goes here.") ?>
Then you should be able to translate it with the translation user interface and that text should change when the user changes the language.
If that does not work please start a new thread and I will investigate that a bit more.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Amalaswinta

Joined: 2011-06-06
Posts: 67
Posted: Fri, 2011-06-17 16:26

thanks, will try winmerge :)

for the translation bit: I've really tried but am unable so have started a new thread