Applying classes to a bulkmail subscription form


(Douglas (@finnatic at @waikato)) #1

I'm trying to customise the formatting of a bulkmail subscription form, and looking to put some bootstrap styles on the form tag...

 

...and failing to see an easy way.

 

Is there an easy way to customise a bulkmail subscription form that I've missed?


(Douglas (@finnatic at @waikato)) #2

Alternatively...

 

at the moment I'm nesting the subscription form into another page.  Is there any reason I can't or shouldn't simply copy the relevant form code e.g.

<form id="bulkmail_subscribe_page_226546" action="..." method="post">

 

 

into the including page and simply call the form from the including page?


(Nic Hubbard) #3

Alternatively...

 

at the moment I'm nesting the subscription form into another page.  Is there any reason I can't or shouldn't simply copy the relevant form code e.g.

into the including page and simply call the form from the including page?

 

I wouldn't hardcode the form, no. Instead, just use some javascript to add the required classes.


(Douglas (@finnatic at @waikato)) #4

My setup may actually require a hardcoded form.  The inclusion on the including page is within a conditional keyword on the paint layout being painted on the asset.  When I try and have the first part of the conditional code in one div, followed by the nested form, and then the final part of the conditional code, Matrix gave me a warning and the conditional check seemed to fail after that.

 

Care to share the reasons why you'd recommend not hardcoding the form?


(Nic Hubbard) #5

It is up to you, but I just think hard coding things that Matrix is suppose to print is a bad idea, as it could break in a future version.

 

Instead of a nested content div, just put everything in one div of the Paint Layout. And when you want to print the form, use %globals_asset_contents_raw:1234% to print the form.


(Douglas (@finnatic at @waikato)) #6

Whilst I agree, it would be nice if Matrix could print what I need, Matrix isn't printing what I need in this case.

 

I'm having to hardcode various references when I customise the logged in / not logged in forms just to add labels etc.

 
Is there any easy way (from the Manuals or some other squiz site) to find out when a component like Bulkmail last saw updates?  Roadmap?

(Nic Hubbard) #7

 

Whilst I agree, it would be nice if Matrix could print what I need, Matrix isn't printing what I need in this case.

 

I'm having to hardcode various references when I customise the logged in / not logged in forms just to add labels etc.

 
Is there any easy way (from the Manuals or some other squiz site) to find out when a component like Bulkmail last saw updates?  Roadmap?

 

 

I don't think Bulkmail has seen an update in a long time.

 

To customize the forms, have you not tried using javascript?


(Douglas (@finnatic at @waikato)) #8

 

To customize the forms, have you not tried using javascript?

 

Yes.  And it may be instrumental in the final implementation.  My preference where possible is to avoid JS so I've been testing what can be done without.