Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
hide markup selection & create custom header?
Hey!
I’m using txp for a newsletter generator
1.
I want to hide all not necessary fields in the write tab
and when I edit the txp_article.php file and put all the markup selection
into a comment like this:
// markup selection
/*
n.graf(‘<label for=“markup-body”>’.gTxt(‘article_markup’).’</label>’.br.
pref_text(‘textile_body’, $textile_body, ‘markup-body’)),
//
n.graf(‘<label for=“markup-excerpt”>’.gTxt(‘excerpt_markup’).’</label>’.br.
pref_text(‘textile_excerpt’, $textile_excerpt, ‘markup-excerpt’)),
*/
it gives me the next error:
Fatal error:
Error: ‘’ is not an integer
assert_int()
textpattern/include/txp_article.php:196 array_map()
textpattern/include/txp_article.php:52 article_save()
textpattern/index.php:116 include()
in /textpattern/lib/txplib_misc.php on line 2125
will love to know how can I hide it please.
maybe with css display:none somewhere?
2.
I want to create my own header by editing the file txplib_head.php
and change the table name “pagetop” it’s works good.
but I want to add another row (tr) below “branding”, that only if you logged in you will see it
how and can I please?
(I want to create a menu with links to edit some specific articles that only logged in users will see it)
Offline
Re: hide markup selection & create custom header?
Ok for the custom header/menu
I found a way:
edit the file txplib_head.php
and add another TR above:
<tr id="nav-secondary">
in that way I got my menu between the 2 lines of the tabs
and only logged in user will see it
and this is how it looks like
(yes I know it’s look like some kind of bandaid LOL, but you got the idea)
what rest is to find a way to hide the markup-selection
any help with this please?
Offline
Re: hide markup selection & create custom header?
THE BLUE DRAGON wrote:
Hey!
I’m using txp for a newsletter generator
Is there a reason you do not want to use the postmaster plugin?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: hide markup selection & create custom header?
colak wrote:
Is there a reason you do not want to use the postmaster plugin?
I am using postmaster and love it =)
but not for this one
In this case the client send thousands of emails using a service company
and all he need is to generate the HTML file of the newsletter
and then import it to that company’s management
so he post some articles, click on “view site” and then click on “file” and save as the page as HTML
Offline