   setId: (name) ->
     if @templateName
       name = @templateName
+    name = name.replace(".","_")
     while name of Pages::instances
       n = name.match /[0-9]+$/
       if n?

        doc["_#{@id}_p"] = page
        doc["_#{@id}_i"] = at
        id = doc._id
        delete doc._id  
        # Add to @Collection
        query().forEach (o, i) =>
          if i is at

                self.routeSettings @
              Tracker.nonreactive =>
                self.onNavClick page
              @next()
        
        # Create one or more routes for the home (first) page
              
