Hi guys,
A small question here from a Razor idiot with a limited programming vocabulary... so bare with my childish explanations :-D.
I've got approx 30 item fields on a Page Item, 20 of those fields I would like to loop through BUT on a paragraph (which is inserted on the Page) and list them in a table (doesn't matter what markup, just for explanation purposes). The SystemName of the 20 fields begin with "Spec_" . So I would like the Name and Value of those fields.
Right now I can only figure out how get the value of each single field by supplying the SystemName of each field, which forces me to have to update the templates if more fields are added in the future + I have to supply the field name in template...
string width = Dynamicweb.Frontend.PageView.Current().Page.Item["Spec_Width"].ToString();
Any help is highly appreciated!