Forum


Replies: 1   Views: 1990
Styling <ul> lists
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by pwctechnicalsecurity  · 21-10-2019 - 20:38

Hi,

Hopefully one of the last questions. I have created a simple list like:

<ul>
  <li>item 1</li>
  <li>item 2</li>
</ul>

I tried to apply a style that was defined in my base template. As I am using the embedHTML function, I initially tried to apply a style through either a <ul> key, a <li> key or a class that I set on the <ul> element, like <ul class='xxx'>. Moreover, I explored the Premium customizeWordContent functions with the following function:

$docx->customizeWordContent(array(
    'type' => 'list'
), array(
        'pStyle' => 'ListRed',
    )
);

Neither one of those seem to help; yet I would like to apply a liststyle that I have set in my base template. Any suggestions?