ilosuna / phpsqlitecms

phpSQLiteCMS is a simple and lightweight web content management system based on PHP and SQLite.
phpsqlitecms.net
MIT License
138 stars 75 forks source link

various questions #20

Open dpertal opened 10 years ago

dpertal commented 10 years ago

Hi,

some questions

1)how can I submenus; eg: -Home -test --test1 --test2 -contact

2) the the contact form does not send any email!

please help Thank you

sim2github commented 10 years ago

1) In phpsqlitecms 1 release i use if construction in template which check if sections of item equal next item. Now i think about jQuery selection appended via jquery appendBefore(ul.dropdown-menu).appendAfter(ul.close). I can pull old variant or look around new one. Author can play with Documentation drop-down menu in master.

2) documentation/formmailer-demo send email on address me@example.com make shure you are use right email. Other reason is missed in Mail.class.php $additional_parameters to send email program one of mine providers require leagal email to send email from field (dont remember correctly, something like -f legal@email.com for sendmail)

dpertal commented 10 years ago

thank you for the quick reply! I'm not a programmer! I beg you, you make me an example to understand better; Thank you

dpertal commented 10 years ago

some help;

sim2github commented 10 years ago

Which of these two issues is not clear?

dpertal commented 10 years ago

as for 2 issues can you tell me what to download and which to put it; most files should be changed;

sim2github commented 10 years ago

1) Default template not support drop down menu, yet. Instead of author use SideBars like http://phpsqlitecms.net/documentation to navigate in another pages of category documentation. You can look at SideBar Tab of this page in supplied with downloaded example.

@ilosuna if it not so obvious may be needs to describe this in documentation? By the way documentation can be translated in other languages and support language redirect for worldwide support and for not programmer people. Proceed to #12 - simplify admin interface.

2) In documentation/formmailer-demo you can look at example of usage contact form: Properties Tab->Type: Formmailer->me@example.com Where me@example.com is email that receive massages from this form. This is first step to makes Contact Form. If messages not received need to look at server connfiguration php.ini sendmail_path.

@ilosuna this also must be described even better to use smth like tooltips to inform what field expected for

sim2github commented 10 years ago

jQuery support of drop down menu - #22 @ilosuna I think, is better to refactor get_menus() function for more performance.

dpertal commented 10 years ago

hi, https://github.com/ilosuna/phpsqlitecms/tree/4b44320d0d1056cabbc933e57e5d605e735792c0 I downloaded the update but yet I still do not understand how to make the submenu

sim2github commented 10 years ago

Hi. This is original master version of @ilosuna. My changes are not applied on his release. Its only my proposition. Read more about GitHub Collaborating. You can download my dropdown branch of forked (copied) version - @sim2github/phpsqlitecms

dpertal commented 10 years ago

hi, downloaded https://github.com/sim2github/phpsqlitecms/archive/dropdown.zip but I see somewhere that will do a submenu! please can you tell me the steps; Thank you

sim2github commented 10 years ago

If section field is the same - builds drop-down menu. First (top) element menu is header. Don't forget to define Section field of Page Properties Tab - thats make Manu item active on current page.

dpertal commented 10 years ago

I did okay but there's a problem! when i go the cursor over the menu submenu hang see video https://dl.dropboxusercontent.com/u/83447593/problem_submenu.mp4

sim2github commented 10 years ago

I see. This because of 1px margin between menus. Change style.css to

ul.nav.nav-pills .dropdown-menu {
 margin-top: 0px;
}